
    vgl                         d Z d Zd Zy)z&
employee/methods/duration_methods.py
c                 |    g d}t        d t        |t        t        | j	                  d                  D              S )z
    this method is used to reconvert time in H:M formate string back to seconds and return it
    args:
        time : time in H:M format
    )  <      c              3   ,   K   | ]  \  }}||z    y w)N ).0abs      5/var/www/horilla/employee/methods/duration_methods.py	<genexpr>z"strtime_seconds.<locals>.<genexpr>   s     EAq1uEs   :)sumzipmapintsplit)timeftrs     r   strtime_secondsr      s0     CES#c4::c?*C!DEEE    c                 t    t        | dz        }t        | dz  dz        }t        | dz  dz        } |dd|dS )zi
    This method is used to formate seconds to H:M and return it
    args:
        seconds : seconds
    r   r   02dr   )r   )secondshourminutess      r   format_timer      sM     w$D7T>b()G7T>R'(G3Zq&&r   N)__doc__r   r   r   r   r   <module>r      s   
F	'r   