from_env_var

Function from_env_var 

Source
pub fn from_env_var() -> Lang
Expand description

Gets the time zone offset from the system environment variable.

This function retrieves the LANG environment variable and attempts to parse it into a Lang value. If the variable is not set or cannot be parsed, it defaults to Lang::EnUsUtf8.

ยงReturns

  • Lang - The corresponding Lang value based on the LANG environment variable.