
    i                     V    S SK Jr  S SKJr  \" S\5      r\" S\5      r " S S\5      rg)    )Enum)NewTypeSecondsMinutesc            	          \ rS rSrSrSrSrSrSrSr	Sr
S	rS
\SS S\4S jrS
\SS S\4S jrS
\S\4S jrS
\S\4S jrS
\S\4S jrS
\S\4S jrS
\S\4S jrS
\S\4S jrS
\S\4S jr\S
\SS SS S\4S j5       rSrg)TimeUnit   z6
TimeUnit enum.

Conversion helper between time units
   i  i@B i ʚ;l    Xp7 l     qal     "R: dunitreturnc                 8    XR                   -  U R                   -  $ )z:Convert value from the given unit to the self unit (float)_value_selfr   r   s      :/app/mltbenv/lib/python3.13/site-packages/aioqbt/chrono.pyfrom_durationTimeUnit.from_duration   s    <<$,,..    c                 8    XR                   -  U R                   -  $ )z8Convert value from the given unit to the self unit (int)r   r   s      r   from_duration_intTimeUnit.from_duration_int   s    <<4<<//r   c                 V    U[         R                  R                  -  U R                  -  $ )z Convert nanoseconds to self unit)r   NANOSECONDSr   r   r   s     r   
from_nanosTimeUnit.from_nanos   s"    8''///$,,>>r   c                 V    U[         R                  R                  -  U R                  -  $ )z!Convert microseconds to self unit)r   MICROSECONDSr   r   s     r   from_microsTimeUnit.from_micros#   "    8((0004<<??r   c                 V    U[         R                  R                  -  U R                  -  $ )z!Convert milliseconds to self unit)r   MILLISECONDSr   r   s     r   from_millisTimeUnit.from_millis'   r#   r   c                 V    U[         R                  R                  -  U R                  -  $ )zConvert seconds to self unit)r   SECONDSr   r   s     r   from_secondsTimeUnit.from_seconds+   "    8##+++dll::r   c                 V    U[         R                  R                  -  U R                  -  $ )zConvert minutes to self unit)r   MINUTESr   r   s     r   from_minutesTimeUnit.from_minutes/   r,   r   c                 V    U[         R                  R                  -  U R                  -  $ )zConvert hours to self unit)r   HOURSr   r   s     r   
from_hoursTimeUnit.from_hours3   s     8>>)))DLL88r   c                 V    U[         R                  R                  -  U R                  -  $ )zConvert days to self unit)r   DAYSr   r   s     r   	from_daysTimeUnit.from_days7   s     8==(((4<<77r   srcdstc                 $    UR                  X5      $ )z:Convert a numeric duration in some unit to one in another.)r   )clsr   r9   r:   s       r   convertTimeUnit.convert;   s       ((r    N)__name__
__module____qualname____firstlineno____doc__r   r    r%   r)   r.   r2   r6   floatr   intr   r   r!   r&   r*   r/   r3   r7   classmethodr=   __static_attributes__r?   r   r   r   r      s    KLLG G E D/u /J /5 /03 0j 0S 0?E ?e ?@U @u @@U @u @;e ; ;;e ; ;9E 9e 985 8U 8 ) )J )Z )E ) )r   r   N)enumr   typingr   rF   r   r   r   r?   r   r   <module>rK      s/     
)S
!
)S
!6)t 6)r   