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
9124ccda
Commit
9124ccda
authored
Jan 10, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX notes for this state
parent
7ba08a09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
prototype/notes.md
prototype/notes.md
+29
-0
No files found.
prototype/notes.md
0 → 100644
View file @
9124ccda
# git's approxidate test "as is"
both python and go libraries do not support inputs like
`1.month.ago`
, so we preprocess to remove the
`.`
. (python's dateparser supports some formats though)
```
python prototype/proto.py
ERROR timespec: 10am noon expected time: 2009-08-29T12:00:00Z parsed time: 2009-08-30T10:00:00Z
ERROR timespec: last tuesday expected time: 2009-08-25T19:20:00Z parsed time: None
ERROR timespec: July 5th expected time: 2009-07-05T19:20:00Z parsed time: 2009-07-05T00:00:00Z
ERROR timespec: 06/05/2009 expected time: 2009-06-05T19:20:00Z parsed time: 2009-06-05T00:00:00Z
ERROR timespec: 06.05.2009 expected time: 2009-05-06T19:20:00Z parsed time: 2009-06-05T00:00:00Z
ERROR timespec: 2008-12-01 expected time: 2008-12-01T19:20:00Z parsed time: 2008-12-01T00:00:00Z
ERROR timespec: 2009-12-01 expected time: 2009-12-01T19:20:00Z parsed time: 2009-12-01T00:00:00Z
$ go run prototype/proto.go
ERROR timespec: 2.years.3.months.ago expected time: 2007-05-30T19:20:00Z parsed time: 2009-05-30T19:20:00Z
ERROR timespec: 10am noon expected time: 2009-08-29T12:00:00Z parsed time: 2009-08-30T10:00:00Z
ERROR timespec: 06/05/2009 expected time: 2009-06-05T19:20:00Z parsed time: 2009-06-05T00:00:00Z
ERROR timespec: 06.05.2009 expected time: 2009-05-06T19:20:00Z parsed time: 2009-06-05T00:00:00Z
ERROR timespec: Jun 6, 5AM expected time: 2009-06-06T05:00:00Z parsed time: 0000-06-06T00:00:05Z
ERROR timespec: 5AM Jun 6 expected time: 2009-06-06T05:00:00Z parsed time: 0000-06-01T00:00:05Z
ERROR timespec: 2008-12-01 expected time: 2008-12-01T19:20:00Z parsed time: 2008-12-01T00:00:00Z
ERROR timespec: 2009-12-01 expected time: 2009-12-01T19:20:00Z parsed time: 2009-12-01T00:00:00Z
```
*
`10am noon`
is ambigious, we don't want so support it.
*
date only
`2008-12-01`
should not retain "current" hour:minute
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