%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/timezone.pyo

�
���^c@@sQdZddlmZmZmZddlmZmZd�Ze	d�Z
dS(u.
Management of timezones
=======================

The timezone can be managed for the system:

.. code-block:: yaml

    America/Denver:
      timezone.system

The system and the hardware clock are not necessarily set to the same time.
By default, the hardware clock is set to localtime, meaning it is set to the
same time as the system clock. If `utc` is set to True, then the hardware clock
will be set to UTC, and the system clock will be an offset of that.

.. code-block:: yaml

    America/Denver:
      timezone.system:
        - utc: True

.. _here: https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts

The Ubuntu community documentation contains an explanation of this setting, as
it applies to systems that dual-boot with Windows. This is explained in greater
detail here_.
i(tabsolute_importtprint_functiontunicode_literals(tSaltInvocationErrortCommandExecutionErrorcC@s
dtkS(uC
    Only load if the timezone module is available in __salt__
    utimezone.get_zone(t__salt__(((s8/usr/lib/python2.7/site-packages/salt/states/timezone.pyt__virtual__$sc
C@s�i|d6id6dd6dd6}t}t}ytd|�}Wn:ttfk
r~}t|d<dj||�|d<|SXt}g}td�d	kr�t}n|tkr�t|d<|jd
j|��nt}|r||krd|d<t}n+|r,||kr,|jdj|��n|dtkrSdj|�|d<|St	d
r�g}|tkr�|jdj|��n|r�||kr�|jdj|��ndj|�|d<|Sg}|r1td|�r||dd<|jdj|��t|d<q1|jd�t|d<n|r�d	}	|rLd}	ntd|	�r�||dd<|jdj|��t|d<q�|jdj|��t|d<ndj|�|d<|S(u�
    Set the timezone for the system.

    name
        The name of the timezone to use (e.g.: America/Denver)

    utc
        Whether or not to set the hardware clock to UTC (default is True)
    unameuchangesuresultuucommentutimezone.zone_compareu@Unable to compare desired timezone '{0}' to system timezone: {1}utimezone.get_hwclocku	localtimeuTimezone {0} already setuUTC already set to {0}u, utestuTimezone {0} needs to be setuUTC needs to be set to {0}utimezone.set_zoneutimezoneuSet timezone {0}uFailed to set timezoneuUTCutimezone.set_hwclockuutcuSet UTC to {0}uFailed to set UTC to {0}N(
tNonetFalseRRRtformattTruetappendtjoint__opts__(
tnametutctrettdo_utctdo_zonetcompzonetexctmyutctmessagestclock((s8/usr/lib/python2.7/site-packages/salt/states/timezone.pytsystem+sr



	

	



	

N(t__doc__t
__future__RRRtsalt.exceptionsRRRR
R(((s8/usr/lib/python2.7/site-packages/salt/states/timezone.pyt<module>s	

Zerion Mini Shell 1.0