Skip to content

Commit f772b38

Browse files
authored
Fix a typo in "Shifting time to transition" example (#559)
```python3 >>> import pendulum >>> dt = pendulum.datetime(2013, 3, 31, 1, 59, 59, 999999, tz='Europe/Paris') >>> print(dt) 2013-03-31T01:59:59.999999+01:00 >>> dt = dt.add(microseconds=1) >>> print(dt) 2013-03-31T03:00:00+02:00 >>> dt.subtract(microseconds=1) DateTime(2013, 3, 31, 1, 59, 59, 999999, tzinfo=Timezone('Europe/Paris')) >>> print(dt.subtract(microseconds=1)) 2013-03-31T01:59:59.999999+01:00 >>> ```
1 parent 599b44b commit f772b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/timezones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ adopt the proper behavior and apply the transition accordingly.
6767
>>> dt = dt.add(microseconds=1)
6868
'2013-03-31T03:00:00+02:00'
6969
>>> dt.subtract(microseconds=1)
70-
'2013-03-31T01:59:59.999998+01:00'
70+
'2013-03-31T01:59:59.999999+01:00'
7171

7272
>>> dt = pendulum.datetime(2013, 10, 27, 2, 59, 59, 999999,
7373
tz='Europe/Paris',

0 commit comments

Comments
 (0)