Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/hello.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
print("Hello CodeGuru Reviewer!")

l1 = [1, 2, 3]

l2 = []
for i in l1:
l2.append(str(i))

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)
print(base_datetime)