diff --git a/shared/lib/Utile/Timestamp.php b/shared/lib/Utile/Timestamp.php index 14f8917..c6b6d4c 100644 --- a/shared/lib/Utile/Timestamp.php +++ b/shared/lib/Utile/Timestamp.php @@ -15,6 +15,10 @@ use DateTimeZone; final class Timestamp { + public static function now(): int { + return self::toEpoch(new DateTimeImmutable('now')); + } + public static function normalize(mixed $value): ?int { if ($value instanceof DateTimeInterface) { return self::toEpoch($value);