pub fn java(num: i64) -> Option<NaiveDateTime>Expand description
Java time is the number of milliseconds since the Unix epoch.
use epochs::java;
let ndt = java(1_234_567_890_000).unwrap();
assert_eq!(ndt.to_string(), "2009-02-13 23:31:30");pub fn java(num: i64) -> Option<NaiveDateTime>Java time is the number of milliseconds since the Unix epoch.
use epochs::java;
let ndt = java(1_234_567_890_000).unwrap();
assert_eq!(ndt.to_string(), "2009-02-13 23:31:30");