mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 12:24:47 +00:00
Added logs screen and list
This commit is contained in:
parent
e657b2e626
commit
1235d6c75e
10 changed files with 666 additions and 2 deletions
12
lib/functions/format_time.dart
Normal file
12
lib/functions/format_time.dart
Normal file
|
@ -0,0 +1,12 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
String formatTimestamp(DateTime timestamp, String format) {
|
||||
DateFormat f = DateFormat(format);
|
||||
return f.format(timestamp);
|
||||
}
|
||||
|
||||
String formatTimeOfDay(TimeOfDay timestamp, String format) {
|
||||
DateFormat f = DateFormat(format);
|
||||
return f.format(DateTime(0, 0, 0, timestamp.hour, timestamp.minute));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue