[−][src]Function epochs::to_windows_date
pub fn to_windows_date(ndt: NaiveDateTime) -> i64
Convert the given NaiveDateTime to a Windows Date time.
use chrono::NaiveDateTime; use epochs::to_windows_date; let ndt = NaiveDateTime::parse_from_str("2009-02-13 23:31:30", "%Y-%m-%d %H:%M:%S").unwrap(); assert_eq!(to_windows_date(ndt), 633_701_646_900_000_000);