s

 avatar
user_7668146059
java
2 years ago
316 B
9
Indexable
case 1: 
value = 3540
if value seconds is equivalent < to 60 minutes the return value is "59 min 00 sec"
case 2: 
var seconds = 3600
if value seconds equivalent to 60 minutes or 1 hour the return value is "1h 00 min"
case 3: 
var seconds = 86400
if value seconds is equivalent to 24 hour the return value is "1d 00h"
Editor is loading...