pub fn posix(posix: &str) -> Result<Self, TzError> {
        match posixtz(posix) {
            IResult::Done(_, rule) => {
                Ok(Timezone {
                    trans: vec![],
                    trule: Some(rule),
                })
            }
            _ => Err(TzError::InvalidPosixTz),
        }
    }
/// Create a `Timezone` from a POSIX TZ definition.
/// See `man 3 tzset` for a description of the format.
Create a `Timezone` from a POSIX TZ definition.
See `man 3 tzset` for a description of the format.
Create a ` Timezone ` from a POSIX TZ definition . See ` man 3 tzset ` for a description of the format .
pub fn posix(posix: &str) -> Result<Self, TzError> {
        match posixtz(posix) {
            IResult::Done(_, rule) => {
                Ok(Timezone {
                    trans: vec![],
                    trule: Some(rule),
                })
            }
            _ => Err(TzError::InvalidPosixTz),
        }
    }
pub fn posix ( posix : & str ) -> Result < Self , TzError > { match posixtz ( posix ) { IResult :: Done ( _ , rule ) => { Ok ( Timezone { trans : vec ! [ ] , trule : Some ( rule ) , } ) } _ => Err ( TzError :: InvalidPosixTz ) , } }
Create a `Timezone` from a POSIX TZ definition.
Create a ` Timezone ` from a POSIX TZ definition .
posix
&str