We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afdae9e commit 8d85900Copy full SHA for 8d85900
README.rst
@@ -18,13 +18,13 @@ Python datetimes made easy.
18
'2016-07-03T22:49:58.502116+00:00'
19
20
>>> tomorrow = pendulum.now().add(days=1)
21
- >>> last_week = pendulum.now().sub(weeks=1)
+ >>> last_week = pendulum.now().subtract(weeks=1)
22
23
>>> if pendulum.now().is_weekend():
24
... print('Party!')
25
'Party!'
26
27
- >>> past = pendulum.now().sub(minutes=2)
+ >>> past = pendulum.now().subtract(minutes=2)
28
>>> past.diff_for_humans()
29
>>> '2 minutes ago'
30
0 commit comments