Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
zodbtools
Commits
c35d3aed
Commit
c35d3aed
authored
6 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tidrange-formats: add a few more supported formats
parent
53d928fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
zodbtools/test/testdata/tidrange-formats.txt
zodbtools/test/testdata/tidrange-formats.txt
+22
-16
No files found.
zodbtools/test/testdata/tidrange-formats.txt
View file @
c35d3aed
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment