Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get current time in seconds

LocalDateTime date = LocalDateTime.now();
int seconds = date.toLocalTime().toSecondOfDay();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #current #time #seconds
ADD COMMENT
Topic
Name
2+7 =