← Unit 1 · all exercises
Saved in this browser only

Milliseconds in a day

Return how many milliseconds there are in the given number of days. A day is 24 hours, an hour is 60 minutes, a minute is 60 seconds, and a second is 1000 milliseconds.

long millis(int days)

Solution.java
Loading editor…
Results

Examples

  • millis(1) → 86400000one day
  • millis(0) → 0

There are also 3 hidden tests you can't see. Solve the problem, not the examples.