use chrono::{DateTime, Duration, Local, Utc};
pub fn get_tomorrow_deribit_format() -> String {
let today = Local::now();
let tomorrow = today + Duration::days(1);
let day = tomorrow.format("%d").to_string(); let month = tomorrow.format("%b").to_string().to_uppercase(); let year = tomorrow.format("%y").to_string();
format!("{}{}{}", day, month, year)
}
pub fn from_deribit_format_date(date: &str) -> Result<DateTime<Utc>, chrono::ParseError> {
Ok(DateTime::parse_from_str(date, "%d%b%y")?.with_timezone(&Utc))
}