Show More
@@ -440,7 +440,14 b' def versiontuple(v=None, n=4):' | |||
|
440 | 440 | |
|
441 | 441 | # used by parsedate |
|
442 | 442 | defaultdateformats = ( |
|
443 |
'%Y-%m-%d |
|
|
443 | '%Y-%m-%dT%H:%M:%S', # the 'real' ISO8601 | |
|
444 | '%Y-%m-%dT%H:%M', # without seconds | |
|
445 | '%Y-%m-%dT%H%M%S', # another awful but legal variant without : | |
|
446 | '%Y-%m-%dT%H%M', # without seconds | |
|
447 | '%Y-%m-%d %H:%M:%S', # our common legal variant | |
|
448 | '%Y-%m-%d %H:%M', # without seconds | |
|
449 | '%Y-%m-%d %H%M%S', # without : | |
|
450 | '%Y-%m-%d %H%M', # without seconds | |
|
444 | 451 | '%Y-%m-%d %I:%M:%S%p', |
|
445 | 452 | '%Y-%m-%d %H:%M', |
|
446 | 453 | '%Y-%m-%d %I:%M%p', |
@@ -258,3 +258,31 b" Test issue 3764 (interpreting 'today' an" | |||
|
258 | 258 | $ hg log -d today --template '{desc}\n' |
|
259 | 259 | Explicitly committed now. |
|
260 | 260 | today is a good day to code |
|
261 | ||
|
262 | Test parsing various ISO8601 forms | |
|
263 | ||
|
264 | $ hg debugdate "2016-07-27T12:10:21" | |
|
265 | internal: 1469646621 * (glob) | |
|
266 | standard: Wed Jul 27 12:10:21 2016 -0700 | |
|
267 | $ hg debugdate "2016-07-27T12:10:21Z" | |
|
268 | internal: 1469621421 0 | |
|
269 | standard: Wed Jul 27 12:10:21 2016 +0000 | |
|
270 | $ hg debugdate "2016-07-27T12:10:21+00:00" | |
|
271 | internal: 1469621421 0 | |
|
272 | standard: Wed Jul 27 12:10:21 2016 +0000 | |
|
273 | $ hg debugdate "2016-07-27T121021Z" | |
|
274 | internal: 1469621421 0 | |
|
275 | standard: Wed Jul 27 12:10:21 2016 +0000 | |
|
276 | ||
|
277 | $ hg debugdate "2016-07-27 12:10:21" | |
|
278 | internal: 1469646621 * (glob) | |
|
279 | standard: Wed Jul 27 12:10:21 2016 -0700 | |
|
280 | $ hg debugdate "2016-07-27 12:10:21Z" | |
|
281 | internal: 1469621421 0 | |
|
282 | standard: Wed Jul 27 12:10:21 2016 +0000 | |
|
283 | $ hg debugdate "2016-07-27 12:10:21+00:00" | |
|
284 | internal: 1469621421 0 | |
|
285 | standard: Wed Jul 27 12:10:21 2016 +0000 | |
|
286 | $ hg debugdate "2016-07-27 121021Z" | |
|
287 | internal: 1469621421 0 | |
|
288 | standard: Wed Jul 27 12:10:21 2016 +0000 |
General Comments 0
You need to be logged in to leave comments.
Login now