Skip to content

Commit 14ad277

Browse files
authored
Add IS0-8601 and Rfc-3339 pattern without microsecond fraction (#505)
1 parent 6d8685c commit 14ad277

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Psl/DateTime/FormatPattern.php

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum FormatPattern: string implements DefaultInterface
1616
{
1717
case Rfc2822 = 'EEE, dd MMM yyyy HH:mm:ss Z';
1818
case Iso8601 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX';
19+
case Iso8601WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssXXX';
1920
case Http = 'EEE, dd MMM yyyy HH:mm:ss zzz';
2021
case Cookie = 'EEEE, dd-MMM-yyyy HH:mm:ss zzz';
2122
case SqlDate = 'yyyy-MM-dd';
@@ -25,6 +26,7 @@ enum FormatPattern: string implements DefaultInterface
2526
case IsoOrdinalDate = 'yyyy-DDD';
2627
case JulianDay = 'yyyy DDD';
2728
case Rfc3339 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSZZZZZ';
29+
case Rfc3339WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ';
2830
case UnixTimestamp = 'U';
2931
case SimpleDate = 'dd/MM/yyyy';
3032
case American = 'MM/dd/yyyy';

0 commit comments

Comments
 (0)