
    f/                     ~    d dl mZ  G d de      Z G d de      Z G d de      Z G d d	e      Z G d
 de      Zy)    )	Interfacec                       e Zd Zy)DateTimeErrorN__name__
__module____qualname__     K/home/Script/Script_env/lib/python3.12/site-packages/DateTime/interfaces.pyr   r          r   r   c                       e Zd Zy)SyntaxErrorNr   r
   r   r   r   r      r   r   r   c                       e Zd Zy)	DateErrorNr   r
   r   r   r   r      r   r   r   c                       e Zd Zy)	TimeErrorNr   r
   r   r   r   r      r   r   r   c                      e Zd ZdNdZd Zd Zd Zd Zd Zd Z	d	 Z
d
 Zd Zd Zd Zd Zd ZeZd ZeZd ZeZd ZeZd ZeZd ZeZd Zd Zd Zd Zd Z d Z!d Z"d Z#d Z$d Z%d Z&d  Z'd! Z(d" Z)d# Z*d$ Z+d% Z,d& Z-d' Z.d( Z/d) Z0d* Z1d+ Z2d, Z3d- Z4d. Z5d/ Z6d0 Z7d1 Z8d2 Z9d3 Z:d4 Z;d5 Z<d6 Z=d7 Z>d8 Z?d9 Z@d: ZAd; ZBd< ZCd= ZDd> ZEd? ZFd@ ZGdA ZHdB ZIdC ZJdD ZKdE ZLdF ZMeMZNdG ZOdH ZPdI ZQdJ ZRdK ZSdL ZTdM ZUy)O	IDateTimeNc                      y)ziReturns the time zone on the given date.  The time zone
        can change according to daylight savings.Nr
   )ltms    r   	localZonezIDateTime.localZone#       r   c                       y)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   timeTimezIDateTime.timeTime'   r   r   c                      y)zfReturn a DateTime with the value as the current object,
        represented in the indicated timezone.Nr
   )zs    r   toZonezIDateTime.toZone-   r   r   c                       y)zYReturn true if this object represents a date/time later
        than the time of the callNr
   r
   r   r   isFuturezIDateTime.isFuture1   r   r   c                       y)z[Return true if this object represents a date/time earlier
        than the time of the callNr
   r
   r   r   isPastzIDateTime.isPast5   r   r   c                       y)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   isCurrentYearzIDateTime.isCurrentYear9   r   r   c                       y)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   isCurrentMonthzIDateTime.isCurrentMonth>   r   r   c                       y)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   isCurrentDayzIDateTime.isCurrentDayC   r   r   c                       y)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   isCurrentHourzIDateTime.isCurrentHourH   r   r   c                       y)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   isCurrentMinutezIDateTime.isCurrentMinuteM   r   r   c                       y)z`Return true if the current year (in the context of the
        object's timezone) is a leap yearNr
   r
   r   r   
isLeapYearzIDateTime.isLeapYearR   r   r   c                       y)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   earliestTimezIDateTime.earliestTimeV   r   r   c                       y)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   
latestTimezIDateTime.latestTime[   r   r   c                      y)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
   ts    r   greaterThanzIDateTime.greaterThan`   r   r   c                      y)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
   r4   s    r   greaterThanEqualTozIDateTime.greaterThanEqualToj   r   r   c                      y)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
   r4   s    r   equalTozIDateTime.equalTot   r   r   c                      y)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
   r4   s    r   
notEqualTozIDateTime.notEqualTo~   r   r   c                      y)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
   r4   s    r   lessThanzIDateTime.lessThan   r   r   c                      y)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
   r4   s    r   lessThanEqualTozIDateTime.lessThanEqualTo   r   r   c                       y)zoReturn a tuple containing the calendar year, month, day,
        hour, minute second and timezone of the objectNr
   r
   r   r   partszIDateTime.parts   r   r   c                       y)z7Return the timezone in which the object is represented.Nr
   r
   r   r   timezonezIDateTime.timezone   r   r   c                       y)z4Return the timezone offset for the objects timezone.Nr
   r
   r   r   tzoffsetzIDateTime.tzoffset   r   r   c                       y)z&Return the calendar year of the objectNr
   r
   r   r   yearzIDateTime.year   r   r   c                       y)z,Return the month of the object as an integerNr
   r
   r   r   monthzIDateTime.month   r   r   c                       y)zReturn the full month nameNr
   r
   r   r   MonthzIDateTime.Month   r   r   c                       y)z"Return the abbreviated month name.Nr
   r
   r   r   aMonthzIDateTime.aMonth   r   r   c                       y)zCompatibility: see aMonthNr
   r
   r   r   MonzIDateTime.Mon   r   r   c                       y)z0Return the abbreviated (with period) month name.Nr
   r
   r   r   pMonthzIDateTime.pMonth   r   r   c                       y)zCompatibility: see pMonthNr
   r
   r   r   Mon_zIDateTime.Mon_   r   r   c                       y)zReturn the integer dayNr
   r
   r   r   dayzIDateTime.day   r   r   c                       y)z+Return the full name of the day of the weekNr
   r
   r   r   DayzIDateTime.Day   r   r   c                       y)zCompatibility: see DayNr
   r
   r   r   	DayOfWeekzIDateTime.DayOfWeek   r   r   c                       y)z[Return the day of the year, in context of the timezone
        representation of the objectNr
   r
   r   r   	dayOfYearzIDateTime.dayOfYear   r   r   c                       y)z2Return the abbreviated name of the day of the weekNr
   r
   r   r   aDayzIDateTime.aDay   r   r   c                       y)zHReturn the abbreviated (with period) name of the day of the
        weekNr
   r
   r   r   pDayzIDateTime.pDay   r   r   c                       y)zCompatibility: see pDayNr
   r
   r   r   Day_zIDateTime.Day_   r   r   c                       y)z5Return the integer day of the week, where sunday is 0Nr
   r
   r   r   dowzIDateTime.dow   r   r   c                       y)z5Return the integer day of the week, where sunday is 1Nr
   r
   r   r   dow_1zIDateTime.dow_1   r   r   c                       y)z3Return the 12-hour clock representation of the hourNr
   r
   r   r   h_12zIDateTime.h_12   r   r   c                       yz3Return the 24-hour clock representation of the hourNr
   r
   r   r   h_24zIDateTime.h_24   r   r   c                       y)z/Return the appropriate time modifier (am or pm)Nr
   r
   r   r   ampmzIDateTime.ampm   r   r   c                       yrj   r
   r
   r   r   hourzIDateTime.hour   r   r   c                       y)zReturn the minuteNr
   r
   r   r   minutezIDateTime.minute   r   r   c                       y)zReturn the secondNr
   r
   r   r   secondzIDateTime.second   r   r   c                       y)z.Return the millisecond since the epoch in GMT.Nr
   r
   r   r   milliszIDateTime.millis   r   r   c                      y)zAFormat the date/time using the *current timezone representation*.Nr
   )formats    r   strftimezIDateTime.strftime   r   r   c                       y)z&Return the date string for the object.Nr
   r
   r   r   DatezIDateTime.Date   r   r   c                       yz;Return the time string for an object to the nearest second.Nr
   r
   r   r   TimezIDateTime.Time   r   r   c                       yz9Return the time string for an object not showing seconds.Nr
   r
   r   r   TimeMinuteszIDateTime.TimeMinutes   r   r   c                       yr|   r
   r
   r   r   AMPMzIDateTime.AMPM   r   r   c                       yr   r
   r
   r   r   AMPMMinuteszIDateTime.AMPMMinutes   r   r   c                       yz&Return the time string for the object.Nr
   r
   r   r   PreciseTimezIDateTime.PreciseTime  r   r   c                       yr   r
   r
   r   r   PreciseAMPMzIDateTime.PreciseAMPM  r   r   c                       y)z(Return calendar year as a 2 digit stringNr
   r
   r   r   yyzIDateTime.yy	  r   r   c                       y)z Return month as a 2 digit stringNr
   r
   r   r   mmzIDateTime.mm  r   r   c                       y)zReturn day as a 2 digit stringNr
   r
   r   r   ddzIDateTime.dd  r   r   c                       y)z!Return the date in RFC 822 formatNr
   r
   r   r   rfc822zIDateTime.rfc822  r   r   c                       y)z\Return a string representing the object's value in the
        format: March 1, 1997 1:45 pmNr
   r
   r   r   fCommonzIDateTime.fCommon  r   r   c                       y)zgReturn a string representing the object's value in the
        format: March 1, 1997 1:45 pm US/EasternNr
   r
   r   r   fCommonZzIDateTime.fCommonZ  r   r   c                       y)zZReturn a string representing the object's value in the
        format: Mar 1, 1997 1:45 pmNr
   r
   r   r   aCommonzIDateTime.aCommon  r   r   c                       y)zeReturn a string representing the object's value in the
        format: Mar 1, 1997 1:45 pm US/EasternNr
   r
   r   r   aCommonZzIDateTime.aCommonZ#  r   r   c                       y)z[Return a string representing the object's value in the
        format: Mar. 1, 1997 1:45 pmNr
   r
   r   r   pCommonzIDateTime.pCommon'  r   r   c                       y)ziReturn a string representing the object's value
           in the format: Mar. 1, 1997 1:45 pm US/EasternNr
   r
   r   r   pCommonZzIDateTime.pCommonZ+  r   r   c                       y)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   ISOzIDateTime.ISO/  r   r   c                       y)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   ISO8601zIDateTime.ISO86017  r   r   c                       y)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   HTML4zIDateTime.HTML4D  r   r   c                       y)zlReturn the Julian day according to
        https://www.tondering.dk/claus/cal/julperiod.php#formula
        Nr
   r
   r   r   	JulianDayzIDateTime.JulianDayN  r   r   c                       y)zqReturn the week number according to ISO.

        See https://www.tondering.dk/claus/cal/week.php#weekno
        Nr
   r
   r   r   weekzIDateTime.weekS  r   r   c                      y)zsA DateTime may be added to a number and a number may be
        added to a DateTime; two DateTimes cannot be added.Nr
   others    r   __add__zIDateTime.__add__[  r   r   c                      y)zEither a DateTime or a number may be subtracted from a
        DateTime, however, a DateTime may not be subtracted from a
        number.Nr
   r   s    r   __sub__zIDateTime.__sub__a  r   r   c                       y)zKConvert a DateTime to a string that looks like a Python
        expression.Nr
   r
   r   r   __repr__zIDateTime.__repr__f  r   r   c                       y)zConvert a DateTime to a string.Nr
   r
   r   r   __str__zIDateTime.__str__j  r   r   c                       y)z#Compute a hash value for a DateTimeNr
   r
   r   r   __hash__zIDateTime.__hash__m  r   r   c                       y)z=Convert to an integer number of seconds since the epoch (gmt)Nr
   r
   r   r   __int__zIDateTime.__int__p  r   r   c                       y)z=Convert to a long-int number of seconds since the epoch (gmt)Nr
   r
   r   r   __long__zIDateTime.__long__s  r   r   c                       y)zAConvert to floating-point number of seconds since the epoch (gmt)Nr
   r
   r   r   	__float__zIDateTime.__float__v  r   r   )N)Vr   r   r	   r   r   r   r    r"   r$   r&   r(   r*   r,   r.   r0   r2   r6   __gt__r8   __ge__r:   __eq__r<   __ne__r>   __lt__r@   __le__rB   rD   rF   rH   rJ   rL   rN   rP   rR   rT   rV   rX   rZ   r\   r^   r`   rb   rd   rf   rh   rk   rm   ro   rq   rs   ru   rx   rz   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   __radd__r   r   r   r   r   r   r   r
   r   r   r   r       s   502%%,
,
#
#
,
-B
B
4 F<  F) F4 F4 F< F:FC5;)1(?(%:%(A&DDBB>B  =P
5JHJH557/-0
)4'2(=
? H
.2LLPr   r   N)zope.interfacer   	Exceptionr   r   r   r   r   r
   r   r   <module>r      sJ    %	I 		- 		 		 	WP	 WPr   