diff --git a/src/Enum/DateTimePlus/FormatWithTimezone.php b/src/Enum/DateTimePlus/FormatWithTimezone.php index ade56e5..3016d9f 100644 --- a/src/Enum/DateTimePlus/FormatWithTimezone.php +++ b/src/Enum/DateTimePlus/FormatWithTimezone.php @@ -20,11 +20,15 @@ enum FormatWithTimezone: string /** ex: 'Saturday, 01-Jan-2022 12:00:00 GMT+0000'; */ case COOKIE = 'COOKIE'; + /** ex: 022-01-01T12:00:00.000+00:00 */ + case RFC3339_EXTENDED = 'RFC3339_EXTENDED'; + public function pattern(): string { return match ($this) { self::ATOM => 'Y-m-d\TH:i:sP', self::COOKIE => 'l, d-M-Y H:i:s T', + self::RFC3339_EXTENDED => 'Y-m-d\TH:i:s.vP', }; } }