Last active
December 11, 2015 16:39
-
-
Save benzittlau/4629505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Output: 2013-01-24T16:13:08-07:00 | |
Standards Example: 1996-12-19T16:39:57-08:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Output: 2013-01-24T16:13:08-07:00 | |
Google's Output: 2013-01-24T23:00:04.000Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"errors": [ | |
{ | |
"domain": "global", | |
"reason": "badRequest", | |
"message": "Bad Request" | |
} | |
], | |
"code": 400, | |
"message": "Bad Request" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "modified_time_test.txt", | |
"mimeType": "text/plain", | |
"modifiedDate": "2013-01-24T23:00:04.000Z", | |
"md5Checksum": "3de8f8b0dc94b8c2230fab9ec0ba0506", | |
"fileSize": "20" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo date(DateTime::RFC3339, time()); #2013-01-24T16:13:08-07:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo date('Y-m-d\TH:i:s.000P', time()); #2013-01-24T16:58:25.000-07:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
'modifiedDate' => date(DateTime::RFC3339, $timestamp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment