fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. import java.time.* ;
  8. import java.time.format.* ;
  9. import java.time.temporal.* ;
  10. import java.time.chrono.* ;
  11. import java.time.zone.* ;
  12.  
  13.  
  14. /* Name of the class has to be "Main" only if the class is public. */
  15. class Ideone
  16. {
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. List< Long > inputs = List.of( 1_022_290_663_000L , 1022809063000L , 1172792113000L , 1173483313000L , 1351803408000L , 1353531408000L , 1290517173000L , 1293022773000L ) ;
  20. for( Long input : inputs )
  21. {
  22. Instant instant = Instant.ofEpochMilli( input ) ;
  23. System.out.println( input + " → " + instant ) ;
  24. }
  25. }
  26. }
Success #stdin #stdout 0.11s 37116KB
stdin
Standard input is empty
stdout
1022290663000 → 2002-05-25T01:37:43Z
1022809063000 → 2002-05-31T01:37:43Z
1172792113000 → 2007-03-01T23:35:13Z
1173483313000 → 2007-03-09T23:35:13Z
1351803408000 → 2012-11-01T20:56:48Z
1353531408000 → 2012-11-21T20:56:48Z
1290517173000 → 2010-11-23T12:59:33Z
1293022773000 → 2010-12-22T12:59:33Z