share weekKey extension and log splash precache failures
This commit is contained in:
1 parent
f50359b4eb
commit
53bc6d5360
5 files changed
+15
-10
No files matched your search
@@ -64,6 +64,9 @@ extension DateTimeFormatting on DateTime {
|
||||
|
||||
String formatRelative() => Jiffy.parseFromDateTime(this).fromNow();
|
||||
|
||||
/// Compact `yyyyMMdd` key, e.g. to identify a week-start in timetable caches.
|
||||
String weekKey() => Jiffy.parseFromDateTime(this).format(pattern: 'yyyyMMdd');
|
||||
|
||||
String timeRangeTo(DateTime end) => '${formatHm()} - ${end.formatHm()}';
|
||||
|
||||
String formatDateRelativeShort({DateTime? now}) {
|
||||
|
||||
Reference in new issue
Block a user