summaryrefslogtreecommitdiff
path: root/schist_core
diff options
context:
space:
mode:
Diffstat (limited to 'schist_core')
-rw-r--r--schist_core/schist_models/src/date_utc.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/schist_core/schist_models/src/date_utc.rs b/schist_core/schist_models/src/date_utc.rs
index 927644c..658a8dd 100644
--- a/schist_core/schist_models/src/date_utc.rs
+++ b/schist_core/schist_models/src/date_utc.rs
@@ -146,6 +146,10 @@ impl DateUtc {
}
return prev_guess;
}
+
+ pub fn format(&self, fmt: &str) -> String {
+ format!("{}", self.chrono_datetime_utc.format(fmt))
+ }
}
impl Nowlike for DateUtc {