DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
java change time to hh:mm:ss format
long
HH
=
seconds
/
3600
;
long
MM
=
(
seconds
%
3600
)
/
60
;
long
SS
=
seconds
%
60
;
Source by www.baeldung.com #
PREVIOUS
NEXT
Tagged:
#java
#change
#time
#format
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit