import pendulum current_date = pendulum.now().date() uploaded_date = pendulum.date(2018, 8, 1) diff_days = current_date.diff(uploaded_date).in_days() print(current_date.subtract(days = diff_days).diff_for_humans()) # 6 years ago
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter