feat: гост мод и фиксы разные всякие я линус торвальдс

This commit is contained in:
torvalds
2026-06-13 22:19:45 +07:00
parent b766f778d8
commit f00f18a421
17 changed files with 1341 additions and 412 deletions
+4 -2
View File
@@ -38,8 +38,10 @@ String formatDurationMmSs(Duration d, {bool padMinutes = false}) {
String formatSecondsMmSs(int seconds, {bool padMinutes = false}) =>
formatDurationMmSs(Duration(seconds: seconds), padMinutes: padMinutes);
/// "HH:mm".
String formatClock(DateTime dt) => '${_two(dt.hour)}:${_two(dt.minute)}';
/// "HH:mm" or "HH:mm:ss" when [withSeconds] is set.
String formatClock(DateTime dt, {bool withSeconds = false}) => withSeconds
? '${_two(dt.hour)}:${_two(dt.minute)}:${_two(dt.second)}'
: '${_two(dt.hour)}:${_two(dt.minute)}';
/// "5 мая 2024".
String formatDateWords(DateTime dt) =>