mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
5 lines
211 B
Dart
5 lines
211 B
Dart
|
extension TZOffsetExtension on Duration {
|
||
|
String formatAsOffset() =>
|
||
|
"${isNegative ? '-' : '+'}${inHours.abs().toString().padLeft(2, '0')}:${inMinutes.abs().remainder(60).toString().padLeft(2, '0')}";
|
||
|
}
|