You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as you can see in this example, that the function current_time()
returns two different formats.
when it is frozen, it returns a NaiveDateTime where it returns
seconds since the epoche when unfrozen.
test"use the default timer"dofreeze_time(:default_timer,~N[1964-08-31 06:00:00]):timer.sleep(1010)assert~N[1964-08-31 06:00:00]==current_time()unfreeze_time()assertcurrent_time()>1_000_000_000end
Expected behavior
The function should return seconds in any case.
The text was updated successfully, but these errors were encountered:
The bug is
as you can see in this example, that the function
current_time()
returns two different formats.
when it is frozen, it returns a
NaiveDateTime
where it returnsseconds since the epoche when unfrozen.
Expected behavior
The function should return seconds in any case.
The text was updated successfully, but these errors were encountered: