Commit c35d3aed authored by Jérome Perrin's avatar Jérome Perrin

tidrange-formats: add a few more supported formats

parent 53d928fd
......@@ -8,14 +8,31 @@
# XXX for now it's RFC3339 and not hex tid
# some absolute date formats
# some absolute date formats:
# RFC3339
2018-01-01T10:30:00Z 2018-01-01T10:30:00Z
1985-04-12T23:20:50Z 1985-04-12T23:20:50.52Z
1996-12-20T00:39:57Z 1996-12-19T16:39:57-08:00
# based on git's test for approxidate (adapted for timezone
# Europe/Paris and extended a bit)
# RFC822
1976-08-26T14:29:00Z 26 Aug 76 14:29 GMT
1976-08-26T12:29:00Z 26 Aug 76 14:29 +02:00
# RFC850 -> not supported
# (note that I'm not 100% sure of the expected result here)
#2006-01-02T22:04:05Z Monday, 02-Jan-06 15:04:05 MST
# RFC1123 -> not supported
# (note that I'm not 100% sure of the expected result here)
#2006-01-02T22:04:05Z Mon, 02 Jan 2006 15:04:05 MST
# explicit UTC timezone
2018-01-01T10:30:00Z 2018-01-01 10:30:00 UTC
2018-01-02T00:00:00Z 2018-01-02 UTC
# Relative formats, based on git's test for approxidate
# (adapted for timezone Europe/Paris and extended a bit)
2009-08-30T19:20:00Z now
2009-08-30T19:19:55Z 5 seconds ago
2009-08-30T19:19:55Z 5.seconds.ago
......@@ -69,17 +86,6 @@
#2009-06-04T22:00:00Z 06/05/2009
# some more cases
# explicit UTC timezone
2018-01-01T10:30:00Z 2018-01-01 10:30:00 UTC
2018-01-02T00:00:00Z 2018-01-02 UTC
## TODO: these should be in local timezone
#\x03\xc4\x85:\x00\x00\x00\x00 2018-01-01 10:30
#\x03\xc4\x88d\x00\x00\x00\x00 2018-01-02
### works with python implementation, but not supported:
# 2018-01-01T09:30:00Z le 1er janvier 2018 à 10h30
# 2018-01-01T23:00:00Z 2018年1月2日
\ No newline at end of file
#2018-01-01T09:30:00Z le 1er janvier 2018 à 10h30
#2018-01-01T23:00:00Z 2018年1月2日
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment