Skip to content

Commit b35613d

Browse files
andrewelkinssdispater
authored andcommitted
No longer valid examples (#86)
1 parent b44a5ac commit b35613d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

README.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,6 @@ 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]>
90-
91-
pendulum.parse('2016-06-31')
92-
# ValueError: day is out of range for month
93-
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]>
97-
98-
pendulum.from_timestamp(0, pytz.timezone('Europe/Paris'))
99-
# fromtimestamp() is also possible
100-
# <Pendulum [1970-01-01T01:00:00+01:00]>
101-
10287
# Working with DST
10388
just_before = arrow.Arrow(2013, 3, 31, 1, 59, 59, 999999, 'Europe/Paris')
10489
just_after = just_before.replace(microseconds=1)

0 commit comments

Comments
 (0)