(tz: &str, spec: TimezoneSpec)
| 43 | |
| 44 | impl Timezone { |
| 45 | pub fn parse(tz: &str, spec: TimezoneSpec) -> Result<Self, String> { |
| 46 | build_timezone_offset_second(&tokenize_timezone(tz)?, tz, spec) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // We need to implement Serialize and Deserialize traits to include Timezone in the UnaryFunc enum. |