mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 14:29:12 +00:00
12 lines
No EOL
375 B
Dart
12 lines
No EOL
375 B
Dart
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));
|
|
} |