Hi, all,
i’m trying compare with timex variables,
but i don’t know why this code work like that..
dts = Timex.parse!( "2019-01-01T00:00:00.000Z", "{ISO:Extended:Z}" )
now = Timex.parse!( "2019-01-01T00:00:00.100Z", "{ISO:Extended:Z}" )
dt = Timex.shift( dts, seconds: 5 )
if ( dt <= now ) do
raise ( "why? dt already shift seconds... dt[#{ inspect dt }] now[#{ inspect now }]" )
else
:ok
end
I thought that such a comparison should be the opposite result…
anyone can help me to understand this? thanks






















