Skip to content

Commit 8d85900

Browse files
committed
Updates README
1 parent afdae9e commit 8d85900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Python datetimes made easy.
1818
'2016-07-03T22:49:58.502116+00:00'
1919
2020
>>> tomorrow = pendulum.now().add(days=1)
21-
>>> last_week = pendulum.now().sub(weeks=1)
21+
>>> last_week = pendulum.now().subtract(weeks=1)
2222
2323
>>> if pendulum.now().is_weekend():
2424
... print('Party!')
2525
'Party!'
2626
27-
>>> past = pendulum.now().sub(minutes=2)
27+
>>> past = pendulum.now().subtract(minutes=2)
2828
>>> past.diff_for_humans()
2929
>>> '2 minutes ago'
3030

0 commit comments

Comments
 (0)