Skip to content

Commit

Permalink
Add IS0-8601 and Rfc-3339 pattern without microsecond fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Jan 21, 2025
1 parent 4a9a669 commit 136829a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psl/DateTime/FormatPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum FormatPattern: string implements DefaultInterface
{
case Rfc2822 = 'EEE, dd MMM yyyy HH:mm:ss Z';
case Iso8601 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX';
case Iso8601WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssXXX';
case Http = 'EEE, dd MMM yyyy HH:mm:ss zzz';
case Cookie = 'EEEE, dd-MMM-yyyy HH:mm:ss zzz';
case SqlDate = 'yyyy-MM-dd';
Expand All @@ -25,6 +26,7 @@ enum FormatPattern: string implements DefaultInterface
case IsoOrdinalDate = 'yyyy-DDD';
case JulianDay = 'yyyy DDD';
case Rfc3339 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSZZZZZ';
case Rfc3339WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ';
case UnixTimestamp = 'U';
case SimpleDate = 'dd/MM/yyyy';
case American = 'MM/dd/yyyy';
Expand Down

0 comments on commit 136829a

Please sign in to comment.