/// Convert from En1545 (number of days since 1997-01-01, and number of minute since 00:00) to a standard UTC DateTime.
/// # Arguments
///  * `date` - The date in En1545 format (number of days since 1997-01-01).
///  * `time` - The time in En1545 format (number minutes since 00:00).
Convert from En1545 (number of days since 1997-01-01, and number of minute since 00:00) to a standard UTC DateTime.
Convert from En1545 ( number of days since 1997 - 01 - 01 and number of minute since 00 : 00 ) to a standard UTC DateTime .
pub fn from_en1545_date_and_time(date: u16, time: u16) -> DateTime<Utc> {
    let local_datetime =
        *EN1545_ZERO_DATE + Duration::days(i64::from(date)) + Duration::minutes(i64::from(time));
    // Assuming Helsinki because it's impossible to use an HSL travel card outside of Finland.
    // ...I hope.
    Helsinki
        .from_local_datetime(&local_datetime)
        .unwrap()
        .with_timezone(&Utc)
}
pub fn from_en1545_date_and_time ( date : u16 , time : u16 ) -> DateTime < Utc > { let local_datetime = * EN1545_ZERO_DATE + Duration :: days ( i64 :: from ( date ) ) + Duration :: minutes ( i64 :: from ( time ) ) ; // Assuming Helsinki because it's impossible to use an HSL travel card outside of Finland. // ...I hope. Helsinki . from_local_datetime ( & local_datetime ) . unwrap ( ) . with_timezone ( & Utc ) }
Convert from En1545 (number of days since 1997-01-01, and number of minute since 00:00) to a standard UTC DateTime.
Convert from En1545 ( number of days since 1997 - 01 - 01 and number of minute since 00 : 00 ) to a standard UTC DateTime .
date
u16
time
u16