Pendulum - Python datetimes made easy ↦
If the author of this library put as much effort into its API as they did the website, it’ll be a joy to use.
import pendulum
now = pendulum.now('Europe/Paris')
# Changing timezone
now.in_timezone('America/Toronto')
# Default support for common datetime formats
now.to_iso8601_string()
# Shifting
now.add(days=2)
Discussion
Sign in or Join to comment or subscribe