o
    4c/                     @   s`   d dl mZ G dd deZG dd deZG dd deZG dd	 d	eZG d
d deZdS )    )	Interfacec                   @      e Zd ZdS )DateTimeErrorN__name__
__module____qualname__ r	   r	   I/var/www/html/gps/gps/lib/python3.10/site-packages/DateTime/interfaces.pyr          r   c                   @   r   )SyntaxErrorNr   r	   r	   r	   r
   r      r   r   c                   @   r   )	DateErrorNr   r	   r	   r	   r
   r      r   r   c                   @   r   )	TimeErrorNr   r	   r	   r	   r
   r      r   r   c                   @   s  e Zd ZdddZdd Zdd Zdd	 Zd
d Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd ZeZdd ZeZd d! ZeZd"d# ZeZd$d% ZeZd&d' ZeZd(d) Zd*d+ Zd,d- Zd.d/ Zd0d1 Z d2d3 Z!d4d5 Z"d6d7 Z#d8d9 Z$d:d; Z%d<d= Z&d>d? Z'd@dA Z(dBdC Z)dDdE Z*dFdG Z+dHdI Z,dJdK Z-dLdM Z.dNdO Z/dPdQ Z0dRdS Z1dTdU Z2dVdW Z3dXdY Z4dZd[ Z5d\d] Z6d^d_ Z7d`da Z8dbdc Z9ddde Z:dfdg Z;dhdi Z<djdk Z=dldm Z>dndo Z?dpdq Z@drds ZAdtdu ZBdvdw ZCdxdy ZDdzd{ ZEd|d} ZFd~d ZGdd ZHdd ZIdd ZJdd ZKdd ZLdd ZMeMZNdd ZOdd ZPdd ZQdd ZRdd ZSdd ZTdd ZUdS )	IDateTimeNc                 C      dS )ziReturns the time zone on the given date.  The time zone
        can change according to daylight savings.Nr	   )ltmr	   r	   r
   	localZone$       zIDateTime.localZonec                   C   r   )zReturn the date/time as a floating-point number in UTC, in
        the format used by the python time module.  Note that it is
        possible to create date/time values with DateTime that have no
        meaningful value to the time module.Nr	   r	   r	   r	   r
   timeTime(   r   zIDateTime.timeTimec                 C   r   )zfReturn a DateTime with the value as the current object,
        represented in the indicated timezone.Nr	   )zr	   r	   r
   toZone.   r   zIDateTime.toZonec                   C   r   )zYReturn true if this object represents a date/time later
        than the time of the callNr	   r	   r	   r	   r
   isFuture2   r   zIDateTime.isFuturec                   C   r   )z[Return true if this object represents a date/time earlier
        than the time of the callNr	   r	   r	   r	   r
   isPast6   r   zIDateTime.isPastc                   C   r   )zReturn true if this object represents a date/time that
        falls within the current year, in the context of this
        object's timezone representationNr	   r	   r	   r	   r
   isCurrentYear:   r   zIDateTime.isCurrentYearc                   C   r   )zReturn true if this object represents a date/time that
        falls within the current month, in the context of this
        object's timezone representationNr	   r	   r	   r	   r
   isCurrentMonth?   r   zIDateTime.isCurrentMonthc                   C   r   )zReturn true if this object represents a date/time that
        falls within the current day, in the context of this object's
        timezone representationNr	   r	   r	   r	   r
   isCurrentDayD   r   zIDateTime.isCurrentDayc                   C   r   )zReturn true if this object represents a date/time that
        falls within the current hour, in the context of this object's
        timezone representationNr	   r	   r	   r	   r
   isCurrentHourI   r   zIDateTime.isCurrentHourc                   C   r   )zReturn true if this object represents a date/time that
        falls within the current minute, in the context of this
        object's timezone representationNr	   r	   r	   r	   r
   isCurrentMinuteN   r   zIDateTime.isCurrentMinutec                   C   r   )z`Return true if the current year (in the context of the
        object's timezone) is a leap yearNr	   r	   r	   r	   r
   
isLeapYearS   r   zIDateTime.isLeapYearc                   C   r   )zReturn a new DateTime object that represents the earliest
        possible time (in whole seconds) that still falls within the
        current object's day, in the object's timezone contextNr	   r	   r	   r	   r
   earliestTimeW   r   zIDateTime.earliestTimec                   C   r   )zReturn a new DateTime object that represents the latest
        possible time (in whole seconds) that still falls within the
        current object's day, in the object's timezone contextNr	   r	   r	   r	   r
   
latestTime\   r   zIDateTime.latestTimec                 C   r   )a|  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time greater than the specified DateTime or time module
        style time.  Revised to give more correct results through
        comparison of long integer milliseconds.Nr	   tr	   r	   r
   greaterThana   r   zIDateTime.greaterThanc                 C   r   )a  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time greater than or equal to the specified DateTime or
        time module style time.  Revised to give more correct results
        through comparison of long integer milliseconds.Nr	   r!   r	   r	   r
   greaterThanEqualTok   r   zIDateTime.greaterThanEqualToc                 C   r   )ax  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time equal to the specified DateTime or time module style
        time.  Revised to give more correct results through comparison
        of long integer milliseconds.Nr	   r!   r	   r	   r
   equalTou   r   zIDateTime.equalToc                 C   r   )a|  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time not equal to the specified DateTime or time module
        style time.  Revised to give more correct results through
        comparison of long integer milliseconds.Nr	   r!   r	   r	   r
   
notEqualTo   r   zIDateTime.notEqualToc                 C   r   )ay  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time less than the specified DateTime or time module
        style time.  Revised to give more correct results through
        comparison of long integer milliseconds.Nr	   r!   r	   r	   r
   lessThan   r   zIDateTime.lessThanc                 C   r   )a  Compare this DateTime object to another DateTime object OR
        a floating point number such as that which is returned by the
        python time module. Returns true if the object represents a
        date/time less than or equal to the specified DateTime or time
        module style time.  Revised to give more correct results
        through comparison of long integer milliseconds.Nr	   r!   r	   r	   r
   lessThanEqualTo   r   zIDateTime.lessThanEqualToc                   C   r   )zoReturn a tuple containing the calendar year, month, day,
        hour, minute second and timezone of the objectNr	   r	   r	   r	   r
   parts   r   zIDateTime.partsc                   C   r   )z7Return the timezone in which the object is represented.Nr	   r	   r	   r	   r
   timezone   r   zIDateTime.timezonec                   C   r   )z4Return the timezone offset for the objects timezone.Nr	   r	   r	   r	   r
   tzoffset   r   zIDateTime.tzoffsetc                   C   r   )z&Return the calendar year of the objectNr	   r	   r	   r	   r
   year   r   zIDateTime.yearc                   C   r   )z,Return the month of the object as an integerNr	   r	   r	   r	   r
   month   r   zIDateTime.monthc                   C   r   )zReturn the full month nameNr	   r	   r	   r	   r
   Month   r   zIDateTime.Monthc                   C   r   )z!Return the abreviated month name.Nr	   r	   r	   r	   r
   aMonth   r   zIDateTime.aMonthc                   C   r   )zCompatibility: see aMonthNr	   r	   r	   r	   r
   Mon   r   zIDateTime.Monc                   C   r   )z/Return the abreviated (with period) month name.Nr	   r	   r	   r	   r
   pMonth   r   zIDateTime.pMonthc                   C   r   )zCompatibility: see pMonthNr	   r	   r	   r	   r
   Mon_   r   zIDateTime.Mon_c                   C   r   )zReturn the integer dayNr	   r	   r	   r	   r
   day   r   zIDateTime.dayc                   C   r   )z+Return the full name of the day of the weekNr	   r	   r	   r	   r
   Day   r   zIDateTime.Dayc                   C   r   )zCompatibility: see DayNr	   r	   r	   r	   r
   	DayOfWeek   r   zIDateTime.DayOfWeekc                   C   r   )z[Return the day of the year, in context of the timezone
        representation of the objectNr	   r	   r	   r	   r
   	dayOfYear   r   zIDateTime.dayOfYearc                   C   r   )z1Return the abreviated name of the day of the weekNr	   r	   r	   r	   r
   aDay   r   zIDateTime.aDayc                   C   r   )zGReturn the abreviated (with period) name of the day of the
        weekNr	   r	   r	   r	   r
   pDay   r   zIDateTime.pDayc                   C   r   )zCompatibility: see pDayNr	   r	   r	   r	   r
   Day_   r   zIDateTime.Day_c                   C   r   )z5Return the integer day of the week, where sunday is 0Nr	   r	   r	   r	   r
   dow   r   zIDateTime.dowc                   C   r   )z5Return the integer day of the week, where sunday is 1Nr	   r	   r	   r	   r
   dow_1   r   zIDateTime.dow_1c                   C   r   )z3Return the 12-hour clock representation of the hourNr	   r	   r	   r	   r
   h_12   r   zIDateTime.h_12c                   C   r   z3Return the 24-hour clock representation of the hourNr	   r	   r	   r	   r
   h_24   r   zIDateTime.h_24c                   C   r   )z/Return the appropriate time modifier (am or pm)Nr	   r	   r	   r	   r
   ampm   r   zIDateTime.ampmc                   C   r   r=   r	   r	   r	   r	   r
   hour   r   zIDateTime.hourc                   C   r   )zReturn the minuteNr	   r	   r	   r	   r
   minute   r   zIDateTime.minutec                   C   r   )zReturn the secondNr	   r	   r	   r	   r
   second   r   zIDateTime.secondc                   C   r   )z.Return the millisecond since the epoch in GMT.Nr	   r	   r	   r	   r
   millis   r   zIDateTime.millisc                 C   r   )zAFormat the date/time using the *current timezone representation*.Nr	   )formatr	   r	   r
   strftime   r   zIDateTime.strftimec                   C   r   )z&Return the date string for the object.Nr	   r	   r	   r	   r
   Date   r   zIDateTime.Datec                   C   r   z;Return the time string for an object to the nearest second.Nr	   r	   r	   r	   r
   Time   r   zIDateTime.Timec                   C   r   z9Return the time string for an object not showing seconds.Nr	   r	   r	   r	   r
   TimeMinutes   r   zIDateTime.TimeMinutesc                   C   r   rG   r	   r	   r	   r	   r
   AMPM   r   zIDateTime.AMPMc                   C   r   rI   r	   r	   r	   r	   r
   AMPMMinutes  r   zIDateTime.AMPMMinutesc                   C   r   z&Return the time string for the object.Nr	   r	   r	   r	   r
   PreciseTime  r   zIDateTime.PreciseTimec                   C   r   rM   r	   r	   r	   r	   r
   PreciseAMPM  r   zIDateTime.PreciseAMPMc                   C   r   )z(Return calendar year as a 2 digit stringNr	   r	   r	   r	   r
   yy
  r   zIDateTime.yyc                   C   r   )z Return month as a 2 digit stringNr	   r	   r	   r	   r
   mm  r   zIDateTime.mmc                   C   r   )zReturn day as a 2 digit stringNr	   r	   r	   r	   r
   dd  r   zIDateTime.ddc                   C   r   )z!Return the date in RFC 822 formatNr	   r	   r	   r	   r
   rfc822  r   zIDateTime.rfc822c                   C   r   )z\Return a string representing the object's value in the
        format: March 1, 1997 1:45 pmNr	   r	   r	   r	   r
   fCommon  r   zIDateTime.fCommonc                   C   r   )zgReturn a string representing the object's value in the
        format: March 1, 1997 1:45 pm US/EasternNr	   r	   r	   r	   r
   fCommonZ  r   zIDateTime.fCommonZc                   C   r   )zZReturn a string representing the object's value in the
        format: Mar 1, 1997 1:45 pmNr	   r	   r	   r	   r
   aCommon   r   zIDateTime.aCommonc                   C   r   )zeReturn a string representing the object's value in the
        format: Mar 1, 1997 1:45 pm US/EasternNr	   r	   r	   r	   r
   aCommonZ$  r   zIDateTime.aCommonZc                   C   r   )z[Return a string representing the object's value in the
        format: Mar. 1, 1997 1:45 pmNr	   r	   r	   r	   r
   pCommon(  r   zIDateTime.pCommonc                   C   r   )ziReturn a string representing the object's value
           in the format: Mar. 1, 1997 1:45 pm US/EasternNr	   r	   r	   r	   r
   pCommonZ,  r   zIDateTime.pCommonZc                   C   r   )zReturn the object in ISO standard format. Note: this is
        *not* ISO 8601-format! See the ISO8601 and HTML4 methods below
        for ISO 8601-compliant output

        Dates are output as: YYYY-MM-DD HH:MM:SS
        Nr	   r	   r	   r	   r
   ISO0  r   zIDateTime.ISOc                   C   r   )a  Return the object in ISO 8601-compatible format containing
        the date, time with seconds-precision and the time zone
        identifier - see http://www.w3.org/TR/NOTE-datetime

        Dates are output as: YYYY-MM-DDTHH:MM:SSTZD
            T is a literal character.
            TZD is Time Zone Designator, format +HH:MM or -HH:MM

        The HTML4 method below offers the same formatting, but
        converts to UTC before returning the value and sets the TZD"Z"
        Nr	   r	   r	   r	   r
   ISO86018  r   zIDateTime.ISO8601c                   C   r   )a#  Return the object in the format used in the HTML4.0
        specification, one of the standard forms in ISO8601.  See
        http://www.w3.org/TR/NOTE-datetime

        Dates are output as: YYYY-MM-DDTHH:MM:SSZ
           T, Z are literal characters.
           The time is in UTC.
        Nr	   r	   r	   r	   r
   HTML4E  r   zIDateTime.HTML4c                   C   r   )zkReturn the Julian day according to
        http://www.tondering.dk/claus/cal/node3.html#sec-calcjd
        Nr	   r	   r	   r	   r
   	JulianDayO  r   zIDateTime.JulianDayc                   C   r   )zqReturn the week number according to ISO.

        See https://www.tondering.dk/claus/cal/week.php#weekno
        Nr	   r	   r	   r	   r
   weekT  r   zIDateTime.weekc                 C   r   )zsA DateTime may be added to a number and a number may be
        added to a DateTime; two DateTimes cannot be added.Nr	   otherr	   r	   r
   __add__\  r   zIDateTime.__add__c                 C   r   )zEither a DateTime or a number may be subtracted from a
        DateTime, however, a DateTime may not be subtracted from a
        number.Nr	   r_   r	   r	   r
   __sub__b  r   zIDateTime.__sub__c                   C   r   )zKConvert a DateTime to a string that looks like a Python
        expression.Nr	   r	   r	   r	   r
   __repr__g  r   zIDateTime.__repr__c                   C   r   )zConvert a DateTime to a string.Nr	   r	   r	   r	   r
   __str__k  r   zIDateTime.__str__c                   C   r   )z#Compute a hash value for a DateTimeNr	   r	   r	   r	   r
   __hash__n  r   zIDateTime.__hash__c                   C   r   )z=Convert to an integer number of seconds since the epoch (gmt)Nr	   r	   r	   r	   r
   __int__q  r   zIDateTime.__int__c                   C   r   )z=Convert to a long-int number of seconds since the epoch (gmt)Nr	   r	   r	   r	   r
   __long__t  r   zIDateTime.__long__c                   C   r   )zAConvert to floating-point number of seconds since the epoch (gmt)Nr	   r	   r	   r	   r
   	__float__w  r   zIDateTime.__float__)N)Vr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r#   __gt__r$   __ge__r%   __eq__r&   __ne__r'   __lt__r(   __le__r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r>   r?   r@   rA   rB   rC   rE   rF   rH   rJ   rK   rL   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   ra   __radd__rb   rc   rd   re   rf   rg   rh   r	   r	   r	   r
   r       s    

r   N)zope.interfacer   	Exceptionr   r   r   r   r   r	   r	   r	   r
   <module>   s   