Skip to content

Commit

Permalink
added added date to rfc3339 tests and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed Feb 1, 2018
1 parent 711b2d4 commit ce06e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Date/DateUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function transformPhpDateFormatToRFC3339(string $format): string
'i' => 'mm', // Minutes with leading zeros (00 to 59)
's' => 'ss', // Seconds, with leading zeros (00 to 59)
'u' => '', // Not supported yet: Microseconds (added in PHP 5.2.2). Note that date() will always generate 000000 since it takes an integer parameter, whereas DateTime::format() does support microseconds if DateTime was created with microseconds. (Example: 654321)
// TODO: add remaining formats from http://php.net/manual/en/function.date.php#refsect1-function.date-parameters
];

$chunks = str_split($format);
Expand Down

0 comments on commit ce06e7d

Please sign in to comment.