mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
77 lines
2.4 KiB
Python
77 lines
2.4 KiB
Python
"""Stub file for the 'datetime' module."""
|
|
# This is an autogenerated file. It serves as a starting point
|
|
# for a more precise manual annotation of this module.
|
|
# Feel free to edit the source below, but remove this header when you do.
|
|
|
|
from typing import Any, List, Tuple, Dict, GenericType
|
|
|
|
max = ... # type: object
|
|
min = ... # type: object
|
|
resolution = ... # type: object
|
|
|
|
class date(object):
|
|
def __format__(a) -> unicode:
|
|
raise ValueError()
|
|
def __reduce__() -> tuple: ...
|
|
def ctime() -> str: ...
|
|
def fromordinal(a: int) -> Any:
|
|
raise ValueError()
|
|
def fromtimestamp(a: float) -> Any: ...
|
|
def isocalendar() -> tuple: ...
|
|
def isoformat() -> str: ...
|
|
def isoweekday() -> int: ...
|
|
def replace(*args, **kwargs) -> Any: ...
|
|
def strftime(format) -> Any: ...
|
|
def timetuple() -> Any: ...
|
|
def today() -> Any: ...
|
|
def toordinal() -> int: ...
|
|
def weekday() -> int: ...
|
|
|
|
class datetime(object):
|
|
def __reduce__() -> tuple: ...
|
|
def astimezone(tz) -> Any:
|
|
raise ValueError()
|
|
def combine(date, time) -> Any: ...
|
|
def ctime() -> str: ...
|
|
def date() -> Any: ...
|
|
def dst() -> Any: ...
|
|
def fromtimestamp(timestamp: float, *args, **kwargs) -> Any: ...
|
|
def isoformat(*args, **kwargs) -> str: ...
|
|
def now(*args, **kwargs) -> Any: ...
|
|
def replace(*args, **kwargs) -> Any: ...
|
|
def strptime(a: str, b: str) -> Any:
|
|
raise ValueError()
|
|
def time() -> Any: ...
|
|
def timetuple() -> Any: ...
|
|
def timetz() -> Any: ...
|
|
def tzname() -> Any: ...
|
|
def utcfromtimestamp(a: float) -> Any: ...
|
|
def utcnow() -> Any: ...
|
|
def utcoffset() -> Any: ...
|
|
def utctimetuple() -> Any:
|
|
raise OverflowError()
|
|
|
|
class time(object):
|
|
def __format__(a) -> unicode:
|
|
raise ValueError()
|
|
def __reduce__() -> tuple: ...
|
|
def dst() -> Any: ...
|
|
def isoformat() -> str: ...
|
|
def replace(*args, **kwargs) -> Any: ...
|
|
def strftime(format) -> Any: ...
|
|
def tzname() -> Any: ...
|
|
def utcoffset() -> Any: ...
|
|
|
|
class timedelta(object):
|
|
def __reduce__() -> tuple: ...
|
|
def total_seconds() -> int: ...
|
|
|
|
class tzinfo(object):
|
|
def __reduce__() -> tuple: ...
|
|
def dst(*args, **kwargs) -> Any: ...
|
|
def fromutc(*args, **kwargs) -> Any:
|
|
raise TypeError()
|
|
raise ValueError()
|
|
def tzname(*args, **kwargs) -> Any: ...
|
|
def utcoffset(*args, **kwargs) -> Any: ...
|