|
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
|
|