For example :
input = 360 seconds output = 6 minutesinput = 86400
output = 1 开发者_JAVA技巧dayIs there a built-in method for this.
I did find something similar here.Just want to know if there is a built-in method?
As far as I know, there is no built-in method to achieve this.
not per se, but the use of the Date
class makes this pretty straight-forward.
精彩评论