Ë
    €ÏÎ  ã                   óf   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ  G d„ d	e«      Z	y
)z9Provides a tzinfo subclass to represent the UTC timezone.é    )Úabsolute_import)Úprint_function)Údivision)Úunicode_literals©Ú	timedelta)Útzinfoc                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚUTCa÷  Timezone information class used to convert datetime timestamps to UTC.

  This class is necessary to convert timestamps to UTC. By default Python
  datetime objects are timezone unaware. This created problems when interacting
  with cloud object timestamps which are timezone-aware. This issue appeared
  when handling the timeCreated metadata attribute; the values returned by the
  service were placed in RFC 3339 format in the storage_v1_messages module. RFC
  3339 requires a timezone in any timestamp. This caused problems as the
  datetime object elsewhere in the code was timezone unaware and was different
  by exactly one hour. The main problem was that the local system used daylight
  savings time which adjusted the timestamp ahead by one hour.
  c                 ó   — t        d«      S )zœAn offset of the number of minutes away from UTC this tzinfo object is.

    Returns:
      A time duration of zero. UTC is zero minutes away from UTC.
    r   r   ©ÚselfÚ_s     úplatform/gsutil/gslib/tz_utc.pyÚ	utcoffsetzUTC.utcoffset(   ó   € ô Q‹<Ðó    c                  ó   — y)zvA method to retrieve the name of this timezone object.

    Returns:
      The name of the timezone (i.e. 'UTC').
    r   © r   s     r   Útznamez
UTC.tzname0   s   € ð r   c                 ó   — t        d«      S )zA fixed offset to handle daylight savings time (DST).

    Returns:
      A time duration of zero as UTC does not use DST.
    r   r   r   s     r   ÚdstzUTC.dst8   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s   „ ñòòór   r   N)
r   Ú
__future__r   r   r   r   Údatetimer   r	   r   r   r   r   Ú<module>r      s)   ðñ @å &Ý %Ý Ý 'å Ý ô$ˆ&õ $r   