0

For example :
input = 360 seconds
output = 6 minutes

input = 86400
output = 1 day

Is there a built-in method for this.
I did find something similar here.

Just want to know if there is a built-in method?

2 Answers 2

1

As far as I know, there is no built-in method to achieve this.

0

not per se, but the use of the Date class makes this pretty straight-forward.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.