
    Uf/                         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dS )    )	Interfacec                       e Zd ZdS )DateTimeErrorN__name__
__module____qualname__     U/var/www/ffwdstore.be/apps/py-env/lib/python3.11/site-packages/DateTime/interfaces.pyr   r              Dr   r   c                       e Zd ZdS )SyntaxErrorNr   r
   r   r   r   r      r   r   r   c                       e Zd ZdS )	DateErrorNr   r
   r   r   r   r      r   r   r   c                       e Zd ZdS )	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 ZUdS )O	IDateTimeNc                     dS )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                      dS )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                     dS )zfReturn a DateTime with the value as the current object,
        represented in the indicated timezone.Nr
   )zs    r   toZonezIDateTime.toZone-   r   r   c                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                     dS )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                     dS )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                     dS )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                     dS )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                     dS )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                     dS )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                      dS )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                      dS )z7Return the timezone in which the object is represented.Nr
   r
   r   r   timezonezIDateTime.timezone   r   r   c                      dS )z4Return the timezone offset for the objects timezone.Nr
   r
   r   r   tzoffsetzIDateTime.tzoffset   r   r   c                      dS )z&Return the calendar year of the objectNr
   r
   r   r   yearzIDateTime.year   r   r   c                      dS )z,Return the month of the object as an integerNr
   r
   r   r   monthzIDateTime.month   r   r   c                      dS )zReturn the full month nameNr
   r
   r   r   MonthzIDateTime.Month   r   r   c                      dS )z"Return the abbreviated month name.Nr
   r
   r   r   aMonthzIDateTime.aMonth   r   r   c                      dS )zCompatibility: see aMonthNr
   r
   r   r   MonzIDateTime.Mon   r   r   c                      dS )z0Return the abbreviated (with period) month name.Nr
   r
   r   r   pMonthzIDateTime.pMonth   r   r   c                      dS )zCompatibility: see pMonthNr
   r
   r   r   Mon_zIDateTime.Mon_   r   r   c                      dS )zReturn the integer dayNr
   r
   r   r   dayzIDateTime.day   r   r   c                      dS )z+Return the full name of the day of the weekNr
   r
   r   r   DayzIDateTime.Day   r   r   c                      dS )zCompatibility: see DayNr
   r
   r   r   	DayOfWeekzIDateTime.DayOfWeek   r   r   c                      dS )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                      dS )z2Return the abbreviated name of the day of the weekNr
   r
   r   r   aDayzIDateTime.aDay   r   r   c                      dS )zHReturn the abbreviated (with period) name of the day of the
        weekNr
   r
   r   r   pDayzIDateTime.pDay   r   r   c                      dS )zCompatibility: see pDayNr
   r
   r   r   Day_zIDateTime.Day_   r   r   c                      dS )z5Return the integer day of the week, where sunday is 0Nr
   r
   r   r   dowzIDateTime.dow   r   r   c                      dS )z5Return the integer day of the week, where sunday is 1Nr
   r
   r   r   dow_1zIDateTime.dow_1   r   r   c                      dS )z3Return the 12-hour clock representation of the hourNr
   r
   r   r   h_12zIDateTime.h_12   r   r   c                      dS z3Return the 24-hour clock representation of the hourNr
   r
   r   r   h_24zIDateTime.h_24   r   r   c                      dS )z/Return the appropriate time modifier (am or pm)Nr
   r
   r   r   ampmzIDateTime.ampm   r   r   c                      dS rj   r
   r
   r   r   hourzIDateTime.hour   r   r   c                      dS )zReturn the minuteNr
   r
   r   r   minutezIDateTime.minute   r   r   c                      dS )zReturn the secondNr
   r
   r   r   secondzIDateTime.second   r   r   c                      dS )z.Return the millisecond since the epoch in GMT.Nr
   r
   r   r   milliszIDateTime.millis   r   r   c                     dS )zAFormat the date/time using the *current timezone representation*.Nr
   )formats    r   strftimezIDateTime.strftime   r   r   c                      dS )z&Return the date string for the object.Nr
   r
   r   r   DatezIDateTime.Date   r   r   c                      dS z;Return the time string for an object to the nearest second.Nr
   r
   r   r   TimezIDateTime.Time   r   r   c                      dS z9Return the time string for an object not showing seconds.Nr
   r
   r   r   TimeMinuteszIDateTime.TimeMinutes   r   r   c                      dS r|   r
   r
   r   r   AMPMzIDateTime.AMPM   r   r   c                      dS r   r
   r
   r   r   AMPMMinuteszIDateTime.AMPMMinutes   r   r   c                      dS z&Return the time string for the object.Nr
   r
   r   r   PreciseTimezIDateTime.PreciseTime  r   r   c                      dS r   r
   r
   r   r   PreciseAMPMzIDateTime.PreciseAMPM  r   r   c                      dS )z(Return calendar year as a 2 digit stringNr
   r
   r   r   yyzIDateTime.yy	  r   r   c                      dS )z Return month as a 2 digit stringNr
   r
   r   r   mmzIDateTime.mm  r   r   c                      dS )zReturn day as a 2 digit stringNr
   r
   r   r   ddzIDateTime.dd  r   r   c                      dS )z!Return the date in RFC 822 formatNr
   r
   r   r   rfc822zIDateTime.rfc822  r   r   c                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                      dS )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                     dS )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                     dS )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                      dS )zKConvert a DateTime to a string that looks like a Python
        expression.Nr
   r
   r   r   __repr__zIDateTime.__repr__f  r   r   c                      dS )zConvert a DateTime to a string.Nr
   r
   r   r   __str__zIDateTime.__str__j  r   r   c                      dS )z#Compute a hash value for a DateTimeNr
   r
   r   r   __hash__zIDateTime.__hash__m  r   r   c                      dS )z=Convert to an integer number of seconds since the epoch (gmt)Nr
   r
   r   r   __int__zIDateTime.__int__p  r   r   c                      dS )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                      dS )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 5 5 50 0 02 2 2% % %% % %, , ,
, , ,
# # #
# # #
, , ,
- - -B B B
B B B
4 4 4 F< < <  F) ) ) F4 4 4 F4 4 4 F< < < F: : :F F FC C C5 5 5; ; ;) ) )1 1 1( ( (? ? ?( ( (% % %: : :% % %( ( (A A A  & & &D D DD D DB B BB B B> > >B B B          = = =P P P
5 5 5J J JH H HJ J JH H H5 5 55 5 57 7 7/ / /- - -0 0 0
) ) )4 4 4' ' '2 2 2( ( (= = =        
  ? ? ? H  
  . . .2 2 2L L LL L LP P P P Pr   r   N)zope.interfacer   	Exceptionr   r   r   r   r   r
   r   r   <module>r      s	   % $ $ $ $ $	 	 	 	 	I 	 	 		 	 	 	 	- 	 	 		 	 	 	 	 	 	 		 	 	 	 	 	 	 	WP WP WP WP WP	 WP WP WP WP WPr   