[][src]Function epochs::to_google_calendar

pub fn to_google_calendar(ndt: NaiveDateTime) -> i64

Convert the given NaiveDateTime to a Google Calendar time.

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