403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/mercurial/dirstateutils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/mercurial/dirstateutils/__pycache__/timestamp.cpython-39.pyc
a

�+�b}�@snddlmZddlZddlZddlZddlmZdZejGdd�de	��Z
dd	�Zd
d�Zdd
�Z
dd�ZdS)�)�absolute_importN�)�errori���cs0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�	timestampa�
    A Unix timestamp with optional nanoseconds precision,
    modulo 2**31 seconds.

    A 3-tuple containing:

    `truncated_seconds`: seconds since the Unix epoch,
    truncated to its lower 31 bits

    `subsecond_nanoseconds`: number of nanoseconds since `truncated_seconds`.
    When this is zero, the sub-second precision is considered unknown.

    `second_ambiguous`: whether this timestamp is still "reliable"
    (see `reliable_mtime_of`) if we drop its sub-second component.
    cs*|\}}}|t@||f}tt|��||�S)N)�	rangemask�superr�__new__)�cls�valueZtruncated_seconds�subsec_nanosZsecond_ambiguous��	__class__��G/usr/lib64/python3.9/site-packages/mercurial/dirstateutils/timestamp.pyr$s
ztimestamp.__new__cCst�d��dS�Nz+timestamp should never be compared directly�rZProgrammingError��self�otherrrr�__eq__)s�ztimestamp.__eq__cCst�d��dSrrrrrr�__gt__.s�ztimestamp.__gt__)�__name__�
__module__�__qualname__�__doc__rrr�
__classcell__rrrrrsrc	CsL|��\}}z$tt�|��Wt�|�|�|�St�|�|�|�0dS)z~return a timestamp for "now" in the current vfs

    This will raise an exception if no temporary files could be created.
    N)Zmkstemp�mtime_of�os�fstat�close�unlink)ZvfsZtmpfdZtmpnamerrr�
get_fs_now4s

��
r!cCst�td�S)z4
    Returns the `timestamp` at the Unix epoch.
    )rr)�tuplerrrrrr�zeroAsr#cCsRz
|j}Wn ty*|tj}d}Yn0td�}||}||}t||df�S)zo
    Takes an `os.stat_result`-like object and returns a `timestamp` object
    for its modification time.
    rge��AF)�st_mtime_ns�AttributeError�stat�ST_MTIME�intr)�stat_resultZnanosZsecsrZbillionrrrrHs


rcCszt|�}|d}|d}|d}|d}||krR|rN|rN||krNt||df�SdS||krjd|krrnndS|SdS)a4Same as `mtime_of`, but return `None` or a `Timestamp` with
    `second_ambiguous` set if the date might be ambiguous.

    A modification time is reliable if it is older than "present_time" (or
    sufficiently in the future).

    Otherwise a concurrent modification might happens with the same mtime.
    r�TNi�Q)rr)r)Z
present_mtimeZ
file_mtimeZfile_secondZfile_nsZboundary_secondZboundary_nsrrr�reliable_mtime_ofbs		r+)Z
__future__r�	functoolsrr&�rr�total_orderingr"rr!r#rr+rrrr�<module>s!


Youez - 2016 - github.com/yon3zu
LinuXploit