mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
wip: history panes
This commit is contained in:
@ -13,6 +13,13 @@ String humanizeDate(DateTime? date) {
|
||||
return DateFormat('MMMM d, yyyy').format(date);
|
||||
}
|
||||
|
||||
String humanizeTime(DateTime? time) {
|
||||
if (time == null) {
|
||||
return "";
|
||||
}
|
||||
return DateFormat('hh:mm:ss a').format(time);
|
||||
}
|
||||
|
||||
String humanizeDuration(Duration? duration) {
|
||||
if (duration == null) {
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user