This commit is contained in:
tommy
2025-11-13 11:22:16 +08:00
parent f41425bb89
commit c00c69e342

View File

@@ -96,7 +96,10 @@ impl NaiveDate {
}
pub fn format<'a>(self, pattern: &'a str) -> FormattedDate<'a> {
FormattedDate { date: self, pattern }
FormattedDate {
date: self,
pattern,
}
}
pub fn from_system_time(time: SystemTime) -> Option<Self> {