mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
2.0 KiB
2.0 KiB
icon | label |
---|---|
package | datetime |
!!! This module is not available now. !!!
'''
object
timedelta
timezone
date
datetime
'''
class date:
@staticmethod
def today() -> 'date': ...
def __init__(self, year, month=None, day=None): ...
@property
def year(self) -> int: ...
@property
def month(self) -> int: ...
@property
def day(self) -> int: ...
def __repr__(self) -> str: ...
def __eq__(self, other: 'date') -> bool: ...
def __lt__(self, other: 'date') -> bool: ...
def __le__(self, other: 'date') -> bool: ...
def __gt__(self, other: 'date') -> bool: ...
def __ge__(self, other: 'date') -> bool: ...
def __add__(self, other: 'timedelta') -> 'date': ...
def __sub__(self, other: 'timedelta') -> 'date': ...
class datetime(date):
@staticmethod
def now() -> 'datetime': ...
def __init__(self, year, month=None, day=None, hour=None, minute=None, second=None, tzinfo=None): ...
@property
def hour(self) -> int: ...
@property
def minute(self) -> int: ...
@property
def second(self) -> int: ...
@property
def tzinfo(self) -> 'timezone': ...
def __repr__(self) -> str: ...
def __eq__(self, other) -> bool: ...
def __lt__(self, other) -> bool: ...
def __le__(self, other) -> bool: ...
def __gt__(self, other) -> bool: ...
def __ge__(self, other) -> bool: ...
def __add__(self, other: 'timedelta') -> 'datetime': ...
def __sub__(self, other: 'timedelta') -> 'datetime': ...
def timestamp(self) -> float: ...
class timedelta:
def __init__(days, seconds): ...
def __repr__(self) -> str: ...
def __eq__(self, other: 'timedelta') -> bool: ...
def __lt__(self, other: 'timedelta') -> bool: ...
def __le__(self, other: 'timedelta') -> bool: ...
def __gt__(self, other: 'timedelta') -> bool: ...
def __ge__(self, other: 'timedelta') -> bool: ...
class timezone:
def __init__(self, delta: timedelta): ...