00000040
  6   ˆl—ß=¿Jõ4Ÿº‚ œP.\—uLZ7ÿ�þB g Ùl"d hÏÎƒh¹ÍËÊ      QEMU QEMU USB Tablet
     ˆÆÅÍ523ÀËÊ     ‹      Õ•QoÚ0Çßû)<?ì.¡”iÔñÔ¤¡Q@”iš¦irbC¬&6²”}ú9$V•­Ó6­{òùò÷Ýý.‰�<‹Ç½Ù‡I½™]ÑäÝëá ‡pàýy žÅÕƒv3ú#ŒpæÜ²°Ùlš›ó¦6˜M!sEÞëŒL]“;Žé)}ô‘L0îWDœt¹ ÅÅÒszå¬äÂŸÛZàb-SaKÛ‰
Qh³­—”æ"¨wí°«¤Ò¨‚ú4Pç!‰æÛ2}ø§Sùˆ;–ì2–¦¡ÄehÍr¹Pvz‰)‘ÅY“Fdª•…$gê¶¹�sŒXî"üqÐò:pYyš†2#æ~Õ‹F—ã(ÆtÄ
A€=¬¹öš+L‡Ì:Th.çRð“â›J|#¿œWšXØÔÈ¥“Z¤à�QS�Û%ó¬ž 3ÇªJÂÖ–~×ŒÉÕ´?šÅƒiÕ^†8T÷/Ó	3B9K#Rç�5U•â¹Jìòr¿EuÍF.2‡)Bô ò@ç:çÂ£ž‚Ücaº·Ž+½WZ+huaØ_¢ðE7è ô4Œ\³c¨­§Â°R·JoÔ1„ÿžñ™­|(£ñ�æàzV+DA§Û
NbùÛôí?Àº‡ô¿â¬ÄÚÿÖ˜Vëßxäíõ\ °@ªù÷kÎ¶~b    O   ˆl–ß=¿JÕ4Ÿº‚ „ Z¸&î¥1hß�þ[£Y²È8Û�á	Ç�üÿÏ„mïÎÂa–Ü4ý( ©¤ýÔâ€zàž¸ÛÊbÑ¿Ì ?÷     ##############################################################################
# Copyright (c) 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
##############################################################################
"""Datetime interfaces.

This module is called idatetime because if it were called datetime the import
of the real datetime would fail.
"""
from datetime import timedelta, date, datetime, time, tzinfo

from zope.interface import Interface, Attribute
from zope.interface import classImplements


class ITimeDeltaClass(Interface):
    """This is the timedelta class interface.

    This is symbolic; this module does **not** make
    `datetime.timedelta` provide this interface.
    """

    min = Attribute("The most negative timedelta object")

    max = Attribute("The most positive timedelta object")

    resolution = Attribute(
        "The smallest difference between non-equal timedelta objects")


class ITimeDelta(ITimeDeltaClass):
    """Represent the difference between two datetime objects.

    Implemented by `datetime.timedelta`.

    Supported operators:

    - add, subtract timedelta
    - unary plus, minus, abs
    - compare to timedelta
    - multiply, divide by int/long

    In addition, `.datetime` supports subtraction of two `.datetime` objects
    returning a `.timedelta`, and addition or subtraction of a `.datetime`
    and a `.timedelta` giving a `.datetime`.

    Representation: (days, seconds, microseconds).
    """

    days = Attribute("Days between -999999999 and 999999999 inclusive")

    seconds = Attribute("Seconds between 0 and 86399 inclusive")

    microseconds = Attribute("Microseconds between 0 and 999999 inclusive")


class IDateClass(Interface):
    """This is the date class interface.

    This is symbolic; this module does **not** make
    `datetime.date` provide this interface.
    """

    min = Attribute("The earliest representable date")

    max = Attribute("The latest representable date")

    resolution = Attribute(
        "The smallest difference between non-equal date objects")

    def today():
        """Return the current local time.

        This is equivalent to ``date.fromtimestamp(time.time())``"""

    def fromtimestamp(timestamp):
        """Return the local date from a POSIX timestamp (like time.time())

        This may raise `ValueError`, if the timestamp is out of the range of
        values supported by the platform C ``localtime()`` function. It's common
        for this to be restricted to years from 1970 through 2038. Note that
        on non-POSIX systems that include leap seconds in their notion of a
        timestamp, leap seconds are ignored by `fromtimestamp`.
        """

    def fromordinal(ordinal):
        """Return the date corresponding to the proleptic Gregorian ordinal.

         January 1 of year 1 has ordinal 1. `ValueError` is raised unless
         1 <= ordinal <= date.max.toordinal().

    