Overview:
- The class atrribute utc returns a timezone object which has the offset and name set for the UTC.
Example:
# Example Python program that gets the # Get the UTC timezone object # Get the offset # Get the name # Print UTC information |
Output:
UTC 0:00:00 <class 'datetime.timezone'> |