Deploy in 115+ regions with the modern database for every enterprise.
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
$300 in Free Credit Towards Top Cloud Services
Build VMs, containers, AI, databases, storage—all in one place.
Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
...There are several different methods available to create a new DateTime instance. datetime() sets the time to 00:00:00 if it's not specified, and the timezone (the tz keyword argument) to UTC. Otherwise it can be a Timezone instance or simply a string timezone value. Pendulum gives access to more attributes and properties than the default datetime class. The __str__ magic method is defined to allow DateTime instances to be printed as a pretty date string when used in a string context. Simple comparison is offered up via the basic operators.