[][src]Function epochs::to_apfs

pub fn to_apfs(ndt: NaiveDateTime) -> i64

Convert the given NaiveDateTime to an APFS time.

use chrono::NaiveDateTime;
use epochs::to_apfs;
let ndt = NaiveDateTime::parse_from_str("2009-02-13 23:31:30", "%Y-%m-%d %H:%M:%S").unwrap();
assert_eq!(to_apfs(ndt), 1_234_567_890_000_000_000);