location

data structures for location

Location category

LocationCat

location class


source

EosLocation

 EosLocation (abbr:str, name:str, cname:str, tz:zoneinfo.ZoneInfo)

*location class for eos, abbr, name, cname, tz are required

args:

abbr: abbreviation
name: name
cname: chinese name
tz: timezone

return: EosLocation*

Location serialization


source

EosLocation.serialize_tz

 EosLocation.serialize_tz (tz:zoneinfo.ZoneInfo, _info)

*serialize timezone to string

args:

tz: timezone
_info:  other info

return:

    str*
Type Details
tz ZoneInfo
_info # timezone # other info
pprint(locations)
pprint(locations_by_abbr)
pprint(locations_from_tz)