equal
deleted
inserted
replaced
438 if n == 4: |
438 if n == 4: |
439 return (vints[0], vints[1], vints[2], extra) |
439 return (vints[0], vints[1], vints[2], extra) |
440 |
440 |
441 # used by parsedate |
441 # used by parsedate |
442 defaultdateformats = ( |
442 defaultdateformats = ( |
443 '%Y-%m-%d %H:%M:%S', |
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 '%Y-%m-%d %I:%M:%S%p', |
451 '%Y-%m-%d %I:%M:%S%p', |
445 '%Y-%m-%d %H:%M', |
452 '%Y-%m-%d %H:%M', |
446 '%Y-%m-%d %I:%M%p', |
453 '%Y-%m-%d %I:%M%p', |
447 '%Y-%m-%d', |
454 '%Y-%m-%d', |
448 '%m-%d', |
455 '%m-%d', |