Skip to content

Dates

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

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

$validate = PointInTime::ofFormat(
    new Clock,
    new ISO8601,
);
Tip

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