Skip to content

Commit 3fc993b

Browse files
committed
Merge branch 'master' into develop
2 parents 991eadf + 8978f17 commit 3fc993b

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,17 @@ and it will try its best to return something while silently failing to handle so
8484
pendulum.parse('2016-1-17')
8585
# <Pendulum [2016-01-17T00:00:00+00:00]>
8686
87-
# Parsing of a date with wrong day
88-
arrow.get('2015-06-31')
89-
# <Arrow [2015-06-01T00:00:00+00:00]>
87+
arrow.get('20160413')
88+
# <Arrow [1970-08-22T08:06:53+00:00]>
9089
91-
pendulum.parse('2016-06-31')
92-
# ValueError: day is out of range for month
90+
pendulum.parse('20160413')
91+
# <Pendulum [2016-04-13T00:00:00+00:00]>
9392
94-
# fromtimestamp with timezone displays wrong offset
95-
arrow.Arrow.fromtimestamp(0, pytz.timezone('Europe/Paris'))
96-
# <Arrow [1970-01-01T01:00:00+00:09]>
93+
arrow.get('2016-W07-5')
94+
# <Arrow [2016-01-01T00:00:00+00:00]>
9795
98-
pendulum.from_timestamp(0, pytz.timezone('Europe/Paris'))
99-
# fromtimestamp() is also possible
100-
# <Pendulum [1970-01-01T01:00:00+01:00]>
96+
pendulum.parse('2016-W07-5')
97+
# <Pendulum [2016-02-19T00:00:00+00:00]>
10198
10299
# Working with DST
103100
just_before = arrow.Arrow(2013, 3, 31, 1, 59, 59, 999999, 'Europe/Paris')

0 commit comments

Comments
 (0)