…while changing it to now.plusSeconds(1), it works.
Shouldn’t it be plusMillis(1000)
?
1 Like
Shame on me.
That doesn’t exist either. There are plusSeconds
, plusMinutes
and pretty much everything else imaginable, but the only way I could find to add 100 milliseconds is addNanos(100000000)
or addNanos(100 * 1000000)
for improved readability. I don’t get it.
EDIT: Oops, sorry for necromancing this thread. Thought this was last active on Feb 17, not Feb '17.