mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 02:59:28 +00:00
use logging package
This commit is contained in:
parent
99fb8264f1
commit
f24e63d852
14 changed files with 135 additions and 86 deletions
|
|
@ -9,3 +9,10 @@ extension DurationFormat on Duration {
|
|||
return '${hours}h ${minutes}m';
|
||||
}
|
||||
}
|
||||
|
||||
extension OnlyTime on DateTime {
|
||||
// in format HH:MM:ss
|
||||
// padding with 0
|
||||
String get time =>
|
||||
'${hour.toString().padLeft(2, '0')}:${minute.toString().padLeft(2, '0')}:${second.toString().padLeft(2, '0')}';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue