[][src]Function epochs::cocoa

pub fn cocoa(num: i64) -> Option<NaiveDateTime>

Cocoa time is the number of seconds since 2001-01-01, which is 978,307,200 seconds after the Unix epoch.

use epochs::cocoa;
let ndt = cocoa(256260690).unwrap();
assert_eq!(ndt.to_string(), "2009-02-13 23:31:30");