https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

3�a�
�@s�ddlZddlZddlmZddlmZmZddlmZm	Z	e	dd�e	dd�e	d	d
�e	dd�e	d
d�e	dd�d�Z
dZddd�Zddd�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�cCs�|durt}|dkrtd��t|tj�st�|j|j|j�}|r0t|tj�s0t�|j|j|j�}|p=tj�t|�r;t	nd�}|rE||}}||}t
�|j|j�}|dkrjt
�|j�r`|d8}n
t
�|j�rj|d7}|t�
|�8}|jddd|j}|dkr�t|dd�Stt�D]\}\}	}
||	}|dkr�n	q�t|dd�Sg}d}
|tt�kr�|
|kr�t|\}	}
||	}|dkr�n#|�t||
|��||	|8}|
d7}
|d7}|tt�kr�|
|ks�td��|�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.��r
rz, )�TIME_STRINGS�
ValueError�
isinstance�datetimerrr
�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_depth�r,�8/usr/lib/python3/dist-packages/django/utils/timesince.py�	timesincesR

��	r.cCst||d||d�S)zV
    Like timesince, but return a string measuring the time until the given time.
    T)r"r#r$)r.)r!rr#r$r,r,r-�	timeuntilasr/)NFNr)NNr)rr�django.utils.htmlr�django.utils.timezonerr�django.utils.translationrrrrr.r/r,r,r,r-�<module>s�	

F

https://t.me/RX1948 - 2025