medium10 pts · first answer countsmathdatestime-zones
Day count off by a fraction
For a London customer, code computes (endDate - startDate) / 86400000 with local midnights from 1 to 31 March, and gets 29.958. What is the cause?
Discussion 0
Join free to post in the discussion.
Related questions
- Storing order times for two countriesBackend Developer
- Remainder of a negative numberBackend Developer
- Why 0.1 + 0.2 is not 0.3Backend Developer
- Storing rupee amounts safelyBackend Developer
- GST inside an inclusive priceBackend Developer
- How many buses are neededBackend Developer
- Checking for a power of twoBackend Developer
- Which year is a leap yearBackend Developer