pub fn shanghai_day_start(year: i32, month: u32, day: u32) -> NaiveDateTimeExpand description
获取指定日期在上海时区的 00:00:00 时刻
§参数
year: 年份month: 月份 (1-12)day: 日期 (1-31)
§返回值
返回指定日期零点的 NaiveDateTime。
§Panics
当传入无效日期(如 month=13)时 panic。
pub fn shanghai_day_start(year: i32, month: u32, day: u32) -> NaiveDateTime获取指定日期在上海时区的 00:00:00 时刻
year: 年份month: 月份 (1-12)day: 日期 (1-31)返回指定日期零点的 NaiveDateTime。
当传入无效日期(如 month=13)时 panic。