Dates¶
This will transform strings into PointInTimes from the innmind/time package.
use Innmind\Validation\Constraint;
use Innmind\Time\{
Clock,
Format,
};
$validate = Constraint::pointInTime(Clock::live())->format(
Format::iso8601(),
);
Tip
Instead of creating the Clock yourself you should retrieve it from the operating system abstraction.