Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert long to localdatetime java

long test_timestamp = 1499070300L;
LocalDateTime triggerTime =
       LocalDateTime.ofInstant(Instant.ofEpochSecond(test_timestamp),
                               TimeZone.getDefault().toZoneId());   

System.out.println(triggerTime);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #long #localdatetime #java
ADD COMMENT
Topic
Name
2+4 =