|
|
def | xroad.common.xroad_now () |
| |
|
def | xroad.common.datetime_to_int (dt) |
| |
|
def | xroad.common.str_to_time (s) |
| |
|
def | xroad.common.time_to_str (t) |
| | convert time to string
|
| |
|
def | xroad.common.str_to_date (s) |
| |
|
def | xroad.common.date_to_str (d) |
| | date to string
|
| |
|
def | xroad.common.str_to_datetime (s) |
| |
|
def | xroad.common.datetime_to_str (dt) |
| | convert datetime to string
|
| |
|
def | xroad.common.get_tzone (tzname) |
| | get xroad timezone by timezone name
|
| |
|
def | xroad.common.get_tzone_name (tz) |
| | get timezone name by xroad timezone
|
| |
|
def | xroad.common.get_timezone (tz) |
| | create pytz.timezone from xroad timezone
|
| |
|
def | xroad.common.call_fn (cback, fn_name, *args) |
| |
|
def | xroad.common.strtobool (v) |
| | convert string "True", "False", "TRUE", "FALSE", "Yes", "YES", "No", "NO", "1", "0", "Y", "y", "N", "n" to Bool
|
| |
|
def | xroad.common.json_to_str (json, flags) |
| | convert json to string
|
| |
|
def | xroad.common.json_free (json) |
| |
|
def | xroad.common.get_precision (d_val) |
| |
|
Optional[Enum] | xroad.common.get_enum_member (Enum enum_class, Union[str, int] key) |
| |
|
|
| xroad.common.lib = None |
| |
|
| xroad.common.fd_support_lib = None |
| |
|
| xroad.common.lib_reactor = None |
| |
|
| xroad.common.on_timer_handler = ctypes.CFUNCTYPE(None, ctypes.c_void_p) |
| |
|
| xroad.common.on_timer_mock_handler = ctypes.CFUNCTYPE(None, Str, ctypes.c_void_p) |
| |
|
| xroad.common.on_signal_handler = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p) |
| |
|
| xroad.common.restype |
| |
|
| xroad.common.argtypes |
| |
|
| xroad.common.on_xml_error_handler = ctypes.CFUNCTYPE(None, ctypes.c_char_p, ctypes.py_object) |
| |