Commit Graph

292 Commits

Author SHA1 Message Date
Timo Furrer 04a82f3078 Add Python 3.7 to test matrix 2018-03-31 11:46:05 +02:00
Timo Furrer 5f6b5fc66d Use UTC offset from given time struct when converting from time struct. Fixes #104 2018-03-31 11:42:07 +02:00
Timo Furrer 15a5c9eedb Merge pull request #130 from bsdtux/master
PR for issue #129. Attempt to secure _EPOCH_START
2018-03-30 11:19:14 +02:00
Josh Stephens 7c5d5871d3 * moved _EPOCH_START to be a class variable to protect from a user
makeing an arbitrary change which could render inaccurate results from MayaDT class
2018-03-25 16:06:38 -05:00
kennethreitz b411d5e6d1 Merge pull request #127 from matmunn/duration
Parsing an ISO8601 duration for an interval
2018-03-21 06:30:04 -04:00
Mat Munn 5458b0bf15 Parsing an ISO8601 duration for an interval 2018-03-21 11:23:22 +11:00
Timo Furrer 02f91de523 Merge pull request #124 from matmunn/master
Basic implementation of ISO 8601 parsing for MayaInterval
2018-03-18 12:30:41 +01:00
Mat Munn 00d174c9e2 Merge branch 'master' into master 2018-03-18 08:04:51 +11:00
Mat Munn f87f705a53 Added test 2018-03-18 08:03:34 +11:00
Timo Furrer 9a850b4212 PEP8 formatting by white
Used `white maya/ tests/`.
2018-03-17 12:24:18 +01:00
Timo Furrer 84a5f700c3 Merge pull request #126 from timofurrer/feature/snap
Implement snap modifiers with maya.snap(). Closes #94
2018-03-17 11:59:45 +01:00
Timo Furrer 13e9f2d896 Implement snap modifiers with maya.snap(). Closes #94 2018-03-17 11:55:18 +01:00
Timo Furrer 0c206ad0db Fix tests 2018-03-17 11:52:47 +01:00
Timo Furrer aa87723a0c Make tests and docs a phony makefile target 2018-03-14 20:17:35 +01:00
Mat Munn d51a6a57ec Basic implementation of ISO 8601 parsing for MayaInterval 2018-03-14 10:13:50 +11:00
kennethreitz 3cb65f227c setup.py update
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-26 17:57:57 -05:00
kennethreitz 0108ebe07e 0.3.4
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
v0.3.4
2018-02-26 17:31:33 -05:00
kennethreitz a7d89be3c7 Merge pull request #118 from tbarron/mayadt_subtraction
Mayadt subtraction
2018-02-26 17:30:34 -05:00
kennethreitz 99ffb773bb Merge branch 'master' into mayadt_subtraction 2018-02-26 17:29:34 -05:00
kennethreitz b3293f898e Merge pull request #119 from tbarron/issue_104
Issue 104
2018-02-26 17:29:07 -05:00
kennethreitz 2d8015a13b Merge pull request #120 from radek-sprta/patch-1
Add date property to MayaDT
2018-02-26 17:28:08 -05:00
radek-sprta 9066ee862d Add date property to MayaDT 2018-02-03 12:37:25 +01:00
Tom Barron 5f362a8968 Adding myself to the AUTHORS file 2018-01-29 18:20:41 -05:00
Tom Barron 565fdd6a9e Add myself to AUTHORS file 2018-01-29 18:18:52 -05:00
Tom Barron 24063b5e1b New test and code to address issue 104 2018-01-29 18:10:36 -05:00
Tom Barron b57f4a6775 Proposed update to support MayaDT - MayaDT -> datetime.timedelta 2018-01-29 13:37:31 -05:00
kennethreitz 91e7f499e2 Merge pull request #111 from zed/patch-1
there is no os.dirname only os.path.dirname
2017-12-18 17:28:29 -05:00
kennethreitz be3a349b16 Merge pull request #113 from timofurrer/bugfix/open-encoding
Use codecs.open when relying on encoding
2017-12-18 17:28:20 -05:00
Timo Furrer f69a93b110 Use codecs.open when relying on encoding. Fixes #112 2017-12-18 18:59:58 +01:00
zed 86586e733c there is no os.dirname only os.path.dirname 2017-12-08 15:35:30 +03:00
kennethreitz cd7b5b4aae Merge pull request #109 from alysivji/add_pendulum_tz
Add timezone option for parse()
2017-12-03 13:47:31 -06:00
kennethreitz b70884a1ec Merge pull request #110 from zolrath/fix-prefer-past-test
Fix prefer_past test in December
2017-12-03 06:34:50 -06:00
Matt Furden 773cdecab5 Fix prefer_past test at end of year 2017-12-03 00:47:12 -08:00
Aly Sivji ca865cd840 Add timezone parameter to maya.parse() 2017-12-03 00:06:41 -06:00
kennethreitz 5cf40b2d2e Merge pull request #108 from timofurrer/feature/parse-year-first
Support year_first in maya.parse. Closes #102
2017-11-21 11:32:41 -05:00
Timo Furrer 93152fa7f4 Support year_first in maya.parse. Closes #102
This change adds support for a `year_first` keyword argument to the
`maya.parse` function. `maya` will forward this argument to pendulum
which then lets `dateutil.parse` do the work.
2017-11-21 13:19:55 +01:00
kennethreitz baa0660a9b Merge pull request #103 from zolrath/prefer-past
Add prefer_past option for when
2017-11-20 10:20:39 -05:00
Matt Furden fd62815ce5 Fix test variable name change 2017-10-21 09:42:23 -07:00
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
kennethreitz 79d017fdcf Merge pull request #100 from amalmurali47/patch-1
Fix typos and correct spelling.
v0.3.3
2017-09-21 10:15:42 -04:00
Amal Murali 7331d0d855 Fix typos and correct spelling. 2017-09-21 18:02:15 +05:30
kennethreitz 9c90c0534a Merge pull request #99 from Miserlou/master
Fixes #98 - add support for time struct with test and docs
2017-09-20 13:45:03 -04:00
Rich Jones b9c501b0e4 Fixes #98 - add support for time struct with test and docs 2017-09-20 19:32:37 +02:00
kennethreitz 3a71ff0174 Update README.rst 2017-09-05 13:01:06 -04:00
kennethreitz 43cc1d5946 Merge pull request #97 from dimaspivak/master
Fix MayaInterval.iso8601()
2017-09-02 15:14:51 -04:00
Dima Spivak aecb643beb Add Dima Spivak to AUTHORS.rst 2017-09-02 11:50:27 -07:00
Dima Spivak fa966900e1 Fix MayaInterval.iso8601() 2017-09-02 11:47:32 -07:00
kennethreitz 892e589ef2 Update README.rst 2017-08-31 03:13:35 -04:00
kennethreitz 0f795738c0 Update README.rst 2017-08-31 03:13:16 -04:00
kennethreitz b333489081 Merge pull request #96 from stsievert/patch-1
Add XKCD #1883 to README
2017-08-30 13:12:11 -04:00