示例#1
0
def arrow_date_to_iso(instant: Arrow) -> str:
    # date-only for all day events
    # set to utc, make iso, remove timezone
    instant = arrow.get(instant.astimezone(tzutc)).format('YYYYMMDD')
    return instant  # no TZ for all days
示例#2
0
def arrow_to_iso(instant: Arrow) -> str:
    # set to utc, make iso, remove timezone
    instant = arrow.get(instant.astimezone(tzutc)).format('YYYYMMDDTHHmmss')
    return instant + 'Z'