[][src]Function epochs::to_cocoa

pub fn to_cocoa(ndt: NaiveDateTime) -> i64

Convert the given NaiveDateTime to a Cocoa time.

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