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