Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681454yI swear people like to complicate things.
Why make it do the math when it's a static value anyway?
sleep(86400000); -
neeno31724y@C0D4 because it's much easier to read. I also assume the compiler can optimize the expression into the final result, so it won't make a difference.
-
I wish there was a comment above getCurrentDate call explaining what's happening.
// get current date -
@Tr33 Ah yes just in case the earth is thrown off orbit by an asteroid and you need to update it to 27 hours per day
rant