Skip to content

Conversation

t3yamoto
Copy link
Owner

No description provided.

print(l2)

import datetime
base_datetime = datetime.datetime.now() - datetime.timedelta(days=365)

Check warning

Code scanning / CodeGuru Reviewer Scanner

Time zone aware datetimes

The naive datetime objects are treated by many datetime methods as local times, it is preferred to use aware datetimes to represent times in UTC. The recommended way to create an aware datetime object representing a specific timestamp in UTC is by passing `tzinfo` as an argument to the method.<br><br>[Learn more](https://docs.python.org/3/library/datetime.html#aware-and-naive-objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant