Matt Furden
c0092e74ae
Add prefer_past option for when
...
When parsing dates from websites when encountering ambiguous dates like "December 12th" this is interpreted in the future (when the current date is in October).
When parsing dates that we know must be in the past this is not the correct behavior.
Add a `prefer_past` keyword argument to `when` to allow the user to ensure the date is parsed as being in the past.
2017-10-15 21:49:03 -07:00
Rich Jones
b9c501b0e4
Fixes #98 - add support for time struct with test and docs
2017-09-20 19:32:37 +02:00
Dima Spivak
fa966900e1
Fix MayaInterval.iso8601()
2017-09-02 11:47:32 -07:00
Troy Harrison
8bdd5c65fa
Fixes issue #89
2017-06-28 14:26:54 -05:00
Moin
28b3a849a9
declare seconds_or_timedelta as private function
2017-05-30 19:58:33 +05:30
Evan.Mattiza
66a016ea84
Version File Add and setup.py exec read for version
...
Single place to change version and keep up to date at package level
Signed-off-by: Evan.Mattiza <emattiza@gmail.com >
2017-05-28 17:04:05 -05:00
Moin
51c4298ece
fixed review comment related to argument type check validator and fixed indentation issues
2017-05-28 23:20:40 +05:30
Moin
f3f2793b50
added decorator to vaildate arguments of MayaInterval functions
2017-05-28 23:07:37 +05:30
kennethreitz
251f535d67
Merge pull request #68 from moin18/seconds_or_timedelta_fix
...
fix 'seconds_or_timedelta' to return ONLY 'datetime.timedelta' object
2017-05-28 08:55:15 -07:00
kennethreitz
98e9a2190a
Merge pull request #71 from timofurrer/use-valuerror
...
Raise ValueError instead of AssertionError
2017-05-28 08:54:27 -07:00
Timo Furrer
971ecec9cf
Raise ValueError instead of AssertionError
2017-05-28 12:18:35 +02:00
Moin
0fda49bdb9
variable changes for the operator functions of the MayaDT
2017-05-28 13:06:17 +05:30
Moin
a8a18462fe
fix 'seconds_or_timedelta' to return ONLY 'datetime.timedelta' object
2017-05-28 06:49:18 +05:30
Moin
7b7f990a13
code cleanup - descriptive variable names
2017-05-28 05:06:25 +05:30
kennethreitz
7814ec2864
fix broken tests
2017-05-27 13:04:22 -04:00
kennethreitz
f39c932039
cleanups
2017-05-27 12:12:58 -04:00
kennethreitz
96ff770071
move things around
2017-05-27 12:11:51 -04:00
kennethreitz
cd16ee94f0
move things around
2017-05-27 12:11:45 -04:00