Dates¶
This will transform string
s into PointInTime
s 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.