[−][src]Function epochs::to_icq
pub fn to_icq(ndt: NaiveDateTime) -> f64
Convert the given NaiveDateTime to an ICQ time.
use chrono::NaiveDateTime; use epochs::to_icq; let ndt = NaiveDateTime::parse_from_str("2009-02-13 23:31:30", "%Y-%m-%d %H:%M:%S").unwrap(); assert_eq!(to_icq(ndt), 39857.980208333334);