object_storage/oss/util/
datetime.rs1use anyhow::{Ok, Result};
2use chrono::Utc;
3const GMT_FORMAT: &str = "%a, %d %b %Y %H:%M:%S GMT";
4
5pub async fn create_datetime() -> Result<String> {
6 let now = Utc::now();
7 Ok(now.format(GMT_FORMAT).to_string())
8}