diff --git a/lib/src/utils/date_time_utils.dart b/lib/src/utils/date_time_utils.dart index 0b38c85..fe22c71 100644 --- a/lib/src/utils/date_time_utils.dart +++ b/lib/src/utils/date_time_utils.dart @@ -231,6 +231,10 @@ class DateTimeUtils { ); } } + + static int epochTime() { + return (DateTime.now().millisecondsSinceEpoch / 1000).toInt(); + } } extension DateOnlyCompare on DateTime {