Working with dates is always a pain. Anything involving base 60 really.
Some dates fun in #rstats.
1
2
1
That is a variant of #Rstats FAQ 7.31 and the trouble of floaring point comparison. You could try trunc() which gets seconds-only comparison whicgh is what you want:
> now <- Sys.time()
> then <- now + 0.001
> trunc(now) == trunc(then)
[1] TRUE
> now == then
[1] FALSE
>
Aug 16, 2022 · 2:05 PM UTC
1
2
5


