Skip to content

Dates

This will transform strings into PointInTimes from the innmind/time-continuum package.

use Innmind\Validation\PointInTime;
use Innmind\TimeContinuum\{
    Clock,
    Format,
};

$validate = PointInTime::ofFormat(
    Clock::live(),
    Format::iso8601(),
);
Tip

Instead of creating the Clock yourself you should retrieve it from the operating system abstraction.