Skip to content

Commit 0775cdc

Browse files
committed
Updates docs
1 parent aea14b9 commit 0775cdc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/_docs/modifiers.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ It moves your instance to the middle date between itself and the provided Pendul
4040
dt.start_of('decade')
4141
'2010-01-01 00:00:00'
4242
43-
dt = Pendulum.create(2012, 1, 31, 12, 0, 0)
43+
dt = pendulum.create(2012, 1, 31, 12, 0, 0)
4444
dt.end_of('decade')
4545
'2019-01-31 23:59:59'
4646
@@ -76,9 +76,11 @@ It moves your instance to the middle date between itself and the provided Pendul
7676
dt.day_of_week == pendulum.WEDNESDAY
7777
True
7878
79-
dt = Pendulum.create(2012, 1, 1, 12, 0, 0)
79+
dt = pendulum.create(2012, 1, 1, 12, 0, 0)
8080
dt.next()
8181
'2012-01-08 00:00:00'
82+
dt.next(keep_time=True)
83+
'2012-01-08T12:00:00+00:00'
8284
8385
dt = pendulum.create(2012, 1, 31, 12, 0, 0)
8486
dt.previous(pendulum.WEDNESDAY)
@@ -89,6 +91,8 @@ It moves your instance to the middle date between itself and the provided Pendul
8991
dt = pendulum.create(2012, 1, 1, 12, 0, 0)
9092
dt.previous()
9193
'2011-12-25 00:00:00'
94+
dt.previous(keep_time=True)
95+
'2011-12-25 12:00:00'
9296
9397
start = pendulum.create(2014, 1, 1, 0, 0, 0)
9498
end = pendulum.create(2014, 1, 30, 0, 0, 0)

0 commit comments

Comments
 (0)