Aaron Raddon
bc0a6620c3
Code cleanup & code-coverage, doc from #120
2021-02-05 13:11:38 -08:00
Aaron Raddon
33e44430e1
Merge pull request #120 from bizy01/master
...
redis&&mysql log datetime handle
2021-02-04 14:55:25 -08:00
liushaobo
ab345927d5
测试完善
2021-02-04 16:11:30 +08:00
liushaobo
e92c493a75
完善代码
2021-02-04 15:51:24 +08:00
liushaobo
a7e3619d47
扩充时间格式
2021-02-04 14:23:19 +08:00
liushaobo
b87b24a51f
提交代码
2021-02-03 18:10:39 +08:00
Aaron Raddon
8aadafed4d
Merge pull request #112 from zikaeroh/fix-termtables
...
Fix termtables dependency
2020-10-01 09:24:25 -07:00
zikaeroh
56dec34db1
Fix termtables dependency
2020-09-30 21:27:24 -07:00
Aaron Raddon
fcfe3a02eb
upgrade go version
2020-09-30 13:16:22 -07:00
Aaron Raddon
47a9c00c3c
Merge pull request #107 from solidmetanoia/202007031040-zulu-time-and-go-mod
...
Zulu time and go mod
2020-09-30 13:04:56 -07:00
Aaron Raddon
08fc033bf2
fix bad merge
2020-09-30 12:48:48 -07:00
Aaron Raddon
9cb150cd12
Merge pull request #89 from troyspencer/master
...
Options framework to allow more control over parsing
2020-09-30 12:45:49 -07:00
Aaron Raddon
b07ab88828
Merge pull request #104 from asannikov/colon-separator
...
Colon separator
2020-09-30 12:39:15 -07:00
Aaron Raddon
b85a51b06c
Merge branch 'master' into colon-separator
2020-09-30 12:38:26 -07:00
Aaron Raddon
1c5dd97ab6
doc cleanup from #103
2020-09-30 12:27:10 -07:00
Aaron Raddon
293071ed83
Code cleanup, remove un-used code after #103
2020-09-30 12:17:37 -07:00
Aaron Raddon
1717268078
Merge pull request #103 from charles-dyfis-net/issue-102
...
Parse glibc strftime %c format (#102 )
2020-09-30 11:56:00 -07:00
solidmetanoia
8e65735c08
go module
2020-07-03 19:43:03 +09:00
solidmetanoia
bf0f7e8812
Zulu time
2020-07-03 19:21:00 +09:00
asannikov
95c11657d1
Added extra test cases
2020-06-17 23:01:20 +02:00
asannikov
9e5141594f
Add colon date format mm:dd:yy hh:mm:ss
2020-06-17 22:55:25 +02:00
Troy Spencer
539e9f19d1
Removed vendor folder
2020-06-11 13:05:31 -05:00
Troy Spencer
9d3559c486
Merge branch 'master' of ssh://github.com/araddon/dateparse
2020-06-11 13:04:27 -05:00
Charles Duffy
661394b510
Parse glibc strftime %c format ( #102 )
...
This change trims day-of-week prefixes before entering into the parsing loop. This corrects parsing of glibc's strftime `%c` timestamps, and should allow significant simplification of the state machine in the future.
2020-05-05 21:10:24 -05:00
Aaron Raddon
d820a6159a
Merge pull request #101 from creekorful/master
...
Refactor to use scylladb/termtables
2020-04-09 15:51:46 -07:00
Aloïs Micard
acba2cf96b
Refactor to use scylladb/termtables
...
As you may all already know, apcera/termtables has come to a end.
This commit refactor to use the fork from scylladb.
ScyllaDB is an organization, so there's less chance that their
own fork goes offline too.
2020-04-09 08:39:08 +02:00
troyspencer
a56081ef15
Move vendor folder to top level so 'go get' sees it in CI when run from root
2019-08-13 10:06:38 -05:00
troyspencer
d7f7267056
Vendor termtables to fix main.go
...
Add comment for ParserOption
2019-08-13 10:01:04 -05:00
troyspencer
aca798503a
Wrote tests for 100% coverage
...
Update RetryAmbiguousDateWithSwap detection logic after testing
2019-08-12 20:38:23 -05:00
troyspencer
1bdd6d3fc9
Added option retryAmbiguousDateWithSwap
...
Original retry logic by KamalGalrani
Adapted into a deferred function at the source enabled by an option, by me
2019-08-07 22:47:05 -05:00
troyspencer
ae62f1889d
Added options and passthrough to public functions
2019-08-07 22:24:47 -05:00
troyspencer
f8deff45a7
Renamed Option to ParserOption to narrow scope and leave room for other features that may have options
2019-08-07 22:22:19 -05:00
troyspencer
e151913243
Create Option type, and system for loading options
...
Created PreferMonthFirst option, which exposes preferMonthFirst in a backwards compatible manner with optional spread functions that operate on the parser when it's being constructed
2019-08-07 22:12:45 -05:00
troyspencer
d530bcec9b
Changes to the algorithm to handle when preferMonthFirst is false
...
Credit for this to KamalGalrani
2019-08-07 22:10:40 -05:00
Aaron Raddon
0fb0a474d1
Merge pull request #87 from phorne-uncharted/dash-year-day
...
Added fix for dates split with dashes
2019-06-22 09:48:48 -07:00
Philippe Horne
0f77464124
Added a test to cover the 4 year date when dealing with dates of the type 28-Feb-2018.
2019-06-19 15:53:12 -04:00
Philippe Horne
dd780a39a3
Added fix to parse dates of the format 28-Feb-18 and 28-Feb-2018.
2019-06-19 13:28:39 -04:00
Aaron Raddon
d2ba70357e
Merge pull request #85 from egonelbre/remove-mgo
...
disable timeutils test to prevent depending on mgo
2019-05-10 14:17:50 -07:00
Egon Elbre
ad79b62a5b
disable timeutils test to prevent depending on mgo
2019-05-10 10:21:17 +03:00
Aaron Raddon
0d74ffceef
Merge pull request #84 from ferhatelmas/ordinal-fix
...
Fix ordinal parsing due to copy
2019-04-26 12:27:44 -07:00
ferhat elmas
b0e14136e9
Fix ordinal parsing due to copy
2019-04-26 01:42:47 +02:00
Aaron Raddon
2df4713d07
Merge pull request #83 from treuherz/patch-1
...
Fix typo in "unrecognised format" error
2019-04-25 14:16:23 -07:00
Eli Treuherz
3f294935c0
Fix typo in "unrecognised format" error
2019-04-25 09:12:58 +01:00
Aaron Raddon
74dc0e29b0
Merge pull request #82 from Rambatino/patch-1
...
effects != affects
2019-03-29 09:00:16 -07:00
Mark Ramotowski
fb407e66f0
effects != affects
2019-03-25 16:39:07 +13:00
Aaron Raddon
262228af70
code coverage
2019-02-22 17:01:37 -08:00
Aaron Raddon
c4a7a0dec4
new format closes #76
2019-02-22 16:50:43 -08:00
Aaron Raddon
21df004e09
Additional missed format for refs #74 date format with rd
2018-11-23 09:12:28 -08:00
Aaron Raddon
313f117957
new date formats closes #73 and closes #74
2018-11-22 13:54:48 -08:00
Aaron Raddon
00e168d348
fix date "1 July 2013" closes #70
2018-10-20 12:01:51 -07:00