-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.dart
39 lines (32 loc) · 884 Bytes
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:super_time/super_time.dart';
void main() {
if (kDebugMode) {
final time =
SuperTime.timeAgo(DateTime.now().subtract(const Duration(days: 1)));
print(time.fr);
print(time.en);
final date = SuperTime.fromTimestamp(1627776000000);
print(date);
final format = SuperTime.toFormat('dd/MM/yy HH:mm:ss', DateTime.now());
print(format);
final fr = SuperTime.toFr(DateTime.now());
print(fr);
print((DateTime.now() - 1.st_days).st_toEn());
}
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: Text('Hello World!'),
),
),
);
}
}