Time zone aware datetimes
Naive datetime objects are treated by many datetime methods as local times and might cause time zone related issues.
def datetime_noncompliant():
    from datetime import datetime
    # Noncompliant: datetime method does not specify timezone,
    # resulting in time zone related issues.
    return datetime.now()
def datetime_compliant():
    from datetime import datetime, timezone
    # Compliant: datetime method specifies the time zone,
    # avoiding the time zone related issues.
    return datetime.now(tz=timezone.utc)