From 1034bcb40396a1ae04b01ef866276f553040bf93 Mon Sep 17 00:00:00 2001 From: Witold Baryluk Date: Fri, 16 Jul 2021 14:46:25 +0200 Subject: [PATCH] Fix a typo in "Shifting time to transition" example ```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 >>> ``` --- docs/docs/timezones.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/timezones.md b/docs/docs/timezones.md index 85ff1477..e70034e7 100644 --- a/docs/docs/timezones.md +++ b/docs/docs/timezones.md @@ -67,7 +67,7 @@ adopt the proper behavior and apply the transition accordingly. >>> dt = dt.add(microseconds=1) '2013-03-31T03:00:00+02:00' >>> dt.subtract(microseconds=1) -'2013-03-31T01:59:59.999998+01:00' +'2013-03-31T01:59:59.999999+01:00' >>> dt = pendulum.datetime(2013, 10, 27, 2, 59, 59, 999999, tz='Europe/Paris',