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
TimeZoneKeyName
string as input and translates it to IANA TZ format. Will return the IANA preferred territory001
value of the corresponding timezone.For example,
Pacific Standard Time
is 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_ISO-3166-2
, e.g.:en_US
,nl_NL
oren_GB
.
- dissect.target.helpers.localeutil.get_resource_string(path: str) str #
- dissect.target.helpers.localeutil.WINDOWS_ZONE_MAP#