Skip to content

Commit 313f117

Browse files
authored
new date formats closes #73 and closes #74
1 parent 00e168d commit 313f117

4 files changed

Lines changed: 307 additions & 56 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,17 @@ func main() {
197197
| Thu, 4 Jan 2018 17:53:36 +0000 | 2018-01-04 17:53:36 +0000 UTC |
198198
| Mon Aug 10 15:44:11 UTC+0100 2015 | 2015-08-10 15:44:11 +0000 UTC |
199199
| Fri Jul 03 2015 18:04:07 GMT+0100 (GMT Daylight Time) | 2015-07-03 18:04:07 +0100 GMT |
200+
| September 17, 2012 10:09am | 2012-09-17 10:09:00 +0000 UTC |
200201
| September 17, 2012 at 10:09am PST-08 | 2012-09-17 10:09:00 -0800 PST |
202+
| September 17, 2012, 10:10:09 | 2012-09-17 10:10:09 +0000 UTC |
201203
| October 7, 1970 | 1970-10-07 00:00:00 +0000 UTC |
204+
| October 7th, 1970 | 1970-10-07 00:00:00 +0000 UTC |
202205
| 12 Feb 2006, 19:17 | 2006-02-12 19:17:00 +0000 UTC |
203206
| 12 Feb 2006 19:17 | 2006-02-12 19:17:00 +0000 UTC |
204207
| 7 oct 70 | 1970-10-07 00:00:00 +0000 UTC |
205208
| 7 oct 1970 | 1970-10-07 00:00:00 +0000 UTC |
206209
| 03 February 2013 | 2013-02-03 00:00:00 +0000 UTC |
210+
| 1 July 2013 | 2013-07-01 00:00:00 +0000 UTC |
207211
| 2013-Feb-03 | 2013-02-03 00:00:00 +0000 UTC |
208212
| 3/31/2014 | 2014-03-31 00:00:00 +0000 UTC |
209213
| 03/31/2014 | 2014-03-31 00:00:00 +0000 UTC |

example/main.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ var examples = []string{
2525
"Thu, 4 Jan 2018 17:53:36 +0000",
2626
"Mon Aug 10 15:44:11 UTC+0100 2015",
2727
"Fri Jul 03 2015 18:04:07 GMT+0100 (GMT Daylight Time)",
28+
"September 17, 2012 10:09am",
2829
"September 17, 2012 at 10:09am PST-08",
30+
"September 17, 2012, 10:10:09",
2931
"October 7, 1970",
32+
"October 7th, 1970",
3033
"12 Feb 2006, 19:17",
3134
"12 Feb 2006 19:17",
3235
"7 oct 70",
@@ -155,13 +158,17 @@ func main() {
155158
| Thu, 4 Jan 2018 17:53:36 +0000 | 2018-01-04 17:53:36 +0000 UTC |
156159
| Mon Aug 10 15:44:11 UTC+0100 2015 | 2015-08-10 15:44:11 +0000 UTC |
157160
| Fri Jul 03 2015 18:04:07 GMT+0100 (GMT Daylight Time) | 2015-07-03 18:04:07 +0100 GMT |
161+
| September 17, 2012 10:09am | 2012-09-17 10:09:00 +0000 UTC |
158162
| September 17, 2012 at 10:09am PST-08 | 2012-09-17 10:09:00 -0800 PST |
163+
| September 17, 2012, 10:10:09 | 2012-09-17 10:10:09 +0000 UTC |
159164
| October 7, 1970 | 1970-10-07 00:00:00 +0000 UTC |
165+
| October 7th, 1970 | 1970-10-07 00:00:00 +0000 UTC |
160166
| 12 Feb 2006, 19:17 | 2006-02-12 19:17:00 +0000 UTC |
161167
| 12 Feb 2006 19:17 | 2006-02-12 19:17:00 +0000 UTC |
162168
| 7 oct 70 | 1970-10-07 00:00:00 +0000 UTC |
163169
| 7 oct 1970 | 1970-10-07 00:00:00 +0000 UTC |
164170
| 03 February 2013 | 2013-02-03 00:00:00 +0000 UTC |
171+
| 1 July 2013 | 2013-07-01 00:00:00 +0000 UTC |
165172
| 2013-Feb-03 | 2013-02-03 00:00:00 +0000 UTC |
166173
| 3/31/2014 | 2014-03-31 00:00:00 +0000 UTC |
167174
| 03/31/2014 | 2014-03-31 00:00:00 +0000 UTC |
@@ -225,4 +232,5 @@ func main() {
225232
| 1384216367111222 | 2013-11-12 00:32:47.111222 +0000 UTC |
226233
| 1384216367111222333 | 2013-11-12 00:32:47.111222333 +0000 UTC |
227234
+-------------------------------------------------------+-----------------------------------------+
235+
228236
*/

0 commit comments

Comments
 (0)