package documentation

Undocumented

From __init__.py:

Function from_dmy Undocumented
Function from_iso Undocumented
Function from_timestamp Undocumented
Function is_date Undocumented
Function is_datetime Undocumented
Function now Undocumented
Function now_iso Undocumented
Function parse Undocumented
Function parse_time Undocumented
Function set_system_time_zone Undocumented
Function timestamp Undocumented
Function timestamp_msec Undocumented
Function to_int_string Undocumented
Function to_iso_date_string Undocumented
Function to_iso_local_string Undocumented
Function to_iso_string Undocumented
Function to_iso_time_string Undocumented
Function to_timestamp Undocumented
Function to_utc Undocumented
Function utime Undocumented
Constant _DMY_RE Undocumented
Constant _ISO_DATE_RE Undocumented
Constant _ISO_TIME_RE Undocumented
def set_system_time_zone(tz): (source)

Undocumented

def to_iso_string(d: datetime.datetime, with_tz='+', sep='T') -> str: (source)

Undocumented

def to_iso_date_string(d: datetime.datetime) -> str: (source)

Undocumented

def to_iso_local_string(d: datetime.datetime, with_tz='+', sep='T') -> str: (source)

Undocumented

def to_timestamp(d: datetime.datetime) -> int: (source)

Undocumented

def to_int_string(d: datetime.datetime) -> str: (source)

Undocumented

def now() -> datetime.datetime: (source)

Undocumented

def now_iso(with_tz='+', sep='T') -> str: (source)

Undocumented

def to_utc(d: datetime.datetime) -> datetime.datetime: (source)

Undocumented

def from_timestamp(ts) -> datetime.datetime: (source)

Undocumented

def utime() -> float: (source)

Undocumented

def timestamp() -> int: (source)

Undocumented

def timestamp_msec() -> int: (source)

Undocumented

def is_date(x) -> bool: (source)

Undocumented

def is_datetime(x) -> bool: (source)

Undocumented

def parse(s) -> t.Optional[datetime.datetime]: (source)

Undocumented

_DMY_RE: str = (source)

Undocumented

Value
'''(?x)
    ^
        (?P<d> \\d{1,2})
        [./\\s]
        (?P<m> \\d{1,2})
        [./\\s]
        (?P<Y> \\d{2,4})
...
def from_dmy(s: str) -> t.Optional[datetime.datetime]: (source)

Undocumented

_ISO_DATE_RE: str = (source)

Undocumented

Value
'''(?x)
    ^

    # date
    (?P<Y> \\d{4}) - (?P<m> \\d{1,2}) - (?P<d> \\d{1,2})

    # time?
...
def from_iso(s: str) -> t.Optional[datetime.datetime]: (source)

Undocumented

_ISO_TIME_RE: str = (source)

Undocumented

Value
'''(?x)
    ^
    (?P<H> \\d{1,2}) 
    (
        \\s* : \\s* 
        (?P<M> \\d{1,2}) 
        (
...
def parse_time(s: str) -> t.Optional[datetime.time]: (source)

Undocumented

def to_iso_time_string(tt: datetime.time) -> str: (source)

Undocumented