On Mon, 1 Jul 2024, Go Kudo wrote:

> So, how about adding a `date_set_test_now(\DateInterval 
> $shiftInterval)` function to ext-date?
> 
> This function would treat the current time as shifted by the passed 
> DateInterval. Since it's implemented on the ext-date side, there's no 
> need for dirty hacks using usleep.

It's not that easy, as maney calculations are done in "timelib".

Especially for shifting times with relative times, the parser will need 
to understand that too I suppose.

I am not keen on adding this global override to this library.

cheers,
Derick

Reply via email to