diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 17:51:45 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 20:52:17 +0200 |
commit | 42b79bb0ee28c29a07896168a73a07f44a117ba3 (patch) | |
tree | 5d7f7b09ac6a8b1a4776d90fe22019a74119de1b /libimagtimeui | |
parent | b817f1ba46a9a1b7708969dcf7ab97f755cf83b8 (diff) |
Add ui simple helpers
Diffstat (limited to 'libimagtimeui')
-rw-r--r-- | libimagtimeui/src/ui.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libimagtimeui/src/ui.rs b/libimagtimeui/src/ui.rs new file mode 100644 index 00000000..691e8c47 --- /dev/null +++ b/libimagtimeui/src/ui.rs @@ -0,0 +1,12 @@ +pub fn time_ui_fmtstr() -> &'static str { + "YYYY-MM-DD[THH[:mm[:ss]]]" +} + +pub fn time_ui_fmtstr_expl() -> &'static str { + #r"In the UI, the format for Time is always YEAR-MONTH-DAY. + Optionally, Time can be specified by seperating it from the date with 'T'. + Minutes and Seconds are optional. + "# +} + + |