-
-
Notifications
You must be signed in to change notification settings - Fork 412
Closed
Description
import pendulum
# The most typical usage is for comments
# The instance is the date the comment was created
# and its being compared to default now()
pendulum.now().subtract(days=1).diff_for_humans()
'5 days ago'
In [2]: import pendulum
In [3]: pendulum.now().subtract(days=1).diff_for_humans()
Out[3]: '1 day ago'
Metadata
Metadata
Assignees
Labels
No labels