Skip to main content

datetime_to_serial

Function datetime_to_serial 

Source
pub fn datetime_to_serial(datetime: NaiveDateTime) -> f64
Expand description

Convert a NaiveDateTime to an Excel serial number with fractional time.

The integer part represents the date (see date_to_serial) and the fractional part represents the time of day (0.5 = noon).