pub fn as_name(&self) -> Option<&'static str> {
		use chrono_tz::*;
		match self.inner {
			TimezoneInner::Variable(tz) => Some(tz),
			TimezoneInner::Fixed(offset) => match offset {
				0 => Some(Etc::GMT),
				-3600 => Some(Etc::GMTPlus1),
				-7200 => Some(Etc::GMTPlus2),
				-10800 => Some(Etc::GMTPlus3),
				-14400 => Some(Etc::GMTPlus4),
				-18000 => Some(Etc::GMTPlus5),
				-21600 => Some(Etc::GMTPlus6),
				-25200 => Some(Etc::GMTPlus7),
				-28800 => Some(Etc::GMTPlus8),
				-32400 => Some(Etc::GMTPlus9),
				-36000 => Some(Etc::GMTPlus10),
				-39600 => Some(Etc::GMTPlus11),
				-43200 => Some(Etc::GMTPlus12),
				3600 => Some(Etc::GMTMinus1),
				7200 => Some(Etc::GMTMinus2),
				10800 => Some(Etc::GMTMinus3),
				14400 => Some(Etc::GMTMinus4),
				18000 => Some(Etc::GMTMinus5),
				21600 => Some(Etc::GMTMinus6),
				25200 => Some(Etc::GMTMinus7),
				28800 => Some(Etc::GMTMinus8),
				32400 => Some(Etc::GMTMinus9),
				36000 => Some(Etc::GMTMinus10),
				39600 => Some(Etc::GMTMinus11),
				43200 => Some(Etc::GMTMinus12),
				46800 => Some(Etc::GMTMinus13),
				50400 => Some(Etc::GMTMinus14),
				_ => None,
			},
		}
		.map(Tz::name)
	}
/// Get the name of the timezone as in the [IANA Database](https://www.iana.org/time-zones). It might differ from (although still be equivalent to) the name given to `from_name`.
Get the name of the timezone as in the [IANA Database]. It might differ from (although still be equivalent to) the name given to `from_name`.
Get the name of the timezone as in the [ IANA Database ] . It might differ from ( although still be equivalent to ) the name given to ` from_name ` .
pub fn as_name(&self) -> Option<&'static str> {
		use chrono_tz::*;
		match self.inner {
			TimezoneInner::Variable(tz) => Some(tz),
			TimezoneInner::Fixed(offset) => match offset {
				0 => Some(Etc::GMT),
				-3600 => Some(Etc::GMTPlus1),
				-7200 => Some(Etc::GMTPlus2),
				-10800 => Some(Etc::GMTPlus3),
				-14400 => Some(Etc::GMTPlus4),
				-18000 => Some(Etc::GMTPlus5),
				-21600 => Some(Etc::GMTPlus6),
				-25200 => Some(Etc::GMTPlus7),
				-28800 => Some(Etc::GMTPlus8),
				-32400 => Some(Etc::GMTPlus9),
				-36000 => Some(Etc::GMTPlus10),
				-39600 => Some(Etc::GMTPlus11),
				-43200 => Some(Etc::GMTPlus12),
				3600 => Some(Etc::GMTMinus1),
				7200 => Some(Etc::GMTMinus2),
				10800 => Some(Etc::GMTMinus3),
				14400 => Some(Etc::GMTMinus4),
				18000 => Some(Etc::GMTMinus5),
				21600 => Some(Etc::GMTMinus6),
				25200 => Some(Etc::GMTMinus7),
				28800 => Some(Etc::GMTMinus8),
				32400 => Some(Etc::GMTMinus9),
				36000 => Some(Etc::GMTMinus10),
				39600 => Some(Etc::GMTMinus11),
				43200 => Some(Etc::GMTMinus12),
				46800 => Some(Etc::GMTMinus13),
				50400 => Some(Etc::GMTMinus14),
				_ => None,
			},
		}
		.map(Tz::name)
	}
pub fn as_name ( & self ) -> Option < & ' static str > { use chrono_tz :: * ; match self . inner { TimezoneInner :: Variable ( tz ) => Some ( tz ) , TimezoneInner :: Fixed ( offset ) => match offset { 0 => Some ( Etc :: GMT ) , - 3600 => Some ( Etc :: GMTPlus1 ) , - 7200 => Some ( Etc :: GMTPlus2 ) , - 10800 => Some ( Etc :: GMTPlus3 ) , - 14400 => Some ( Etc :: GMTPlus4 ) , - 18000 => Some ( Etc :: GMTPlus5 ) , - 21600 => Some ( Etc :: GMTPlus6 ) , - 25200 => Some ( Etc :: GMTPlus7 ) , - 28800 => Some ( Etc :: GMTPlus8 ) , - 32400 => Some ( Etc :: GMTPlus9 ) , - 36000 => Some ( Etc :: GMTPlus10 ) , - 39600 => Some ( Etc :: GMTPlus11 ) , - 43200 => Some ( Etc :: GMTPlus12 ) , 3600 => Some ( Etc :: GMTMinus1 ) , 7200 => Some ( Etc :: GMTMinus2 ) , 10800 => Some ( Etc :: GMTMinus3 ) , 14400 => Some ( Etc :: GMTMinus4 ) , 18000 => Some ( Etc :: GMTMinus5 ) , 21600 => Some ( Etc :: GMTMinus6 ) , 25200 => Some ( Etc :: GMTMinus7 ) , 28800 => Some ( Etc :: GMTMinus8 ) , 32400 => Some ( Etc :: GMTMinus9 ) , 36000 => Some ( Etc :: GMTMinus10 ) , 39600 => Some ( Etc :: GMTMinus11 ) , 43200 => Some ( Etc :: GMTMinus12 ) , 46800 => Some ( Etc :: GMTMinus13 ) , 50400 => Some ( Etc :: GMTMinus14 ) , _ => None , } , } . map ( Tz :: name ) }
Get the name of the timezone as in the [IANA Database](https://www.iana.org/time-zones).
Get the name of the timezone as in the [ IANA Database ] ( https : // www . iana . org / time - zones ) .
&self