dissect.target.helpers.localeutil¶
Module Contents¶
Functions¶
Returns normalized timezone format per IANA TZ standard. |
|
Returns normalized locales per ISO-3166. Takes Unix LANG locales and Windows registry languages as input. |
|
Attributes¶
- dissect.target.helpers.localeutil.normalize_timezone(input: str) str¶
Returns normalized timezone format per IANA TZ standard.
Takes a Windows registry
TimeZoneKeyNamestring as input and translates it to IANA TZ format. Will return the IANA preferred territory001value of the corresponding timezone.For example,
Pacific Standard Timeis translated toAmerica/Los_Angeles.
- dissect.target.helpers.localeutil.normalize_language(input: str) str¶
Returns normalized locales per ISO-3166. Takes Unix LANG locales and Windows registry languages as input.
Output will be in the format
ISO-3166-1-alpha-2-code_ISO-3166-2, e.g.:en_US,nl_NLoren_GB.References
- dissect.target.helpers.localeutil.get_resource_string(path: str) str¶
- dissect.target.helpers.localeutil.WINDOWS_ZONE_MAP¶