use crate::datetime::*; use crate::iterinfo::*; use crate::yearinfo::*; use chrono::prelude::*; pub fn from_ordinal(ordinal: isize) -> DateTime { let timestamp = ordinal * 24 * 60 * 60; let naive = NaiveDateTime::from_timestamp(timestamp as i64, 0); DateTime::from_utc(naive, Utc) } pub fn build_poslist( bysetpost: &Vec, timeset: &Vec