pub fn datetime_full_zulu_from_str<S>(year: S, month: S, day: S, hour: S, minute: S, second: S, frac: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    match Date::from_str(year.clone().into(), month.clone().into(), day.clone().into()) {
      Ok(date) => {
        match Time::from_str(hour.clone().into(), minute.clone().into(), second.clone().into(), Some(frac.clone().into()), Some(
            TimeOffset::Zulu
          )) {
          Ok(time) => Ok(Value::DateTime(DateTime::new(date, Some(time)))),
          Err(error) => Err(error),
        }
      },
      Err(error) => Err(error),
    }
  }
/// Convenience function for creating a `Value::DateTime` containing a date and time with fractional seconds and a
/// timezone of Zulu from string values. Returns `Ok(DateTime)` on success and `Err(TOMLError)` on failure.
///
/// # Examples
///
/// ```
/// use tomllib::types::{Value, DateTime, Date, Time, TimeOffset};
///
/// assert_eq!(Value::DateTime(DateTime::new(Date::from_str("2011", "05", "11").unwrap(),
///   Some(Time::from_str("02", "03", "04", None, Some(TimeOffset::Zulu)).unwrap()))),
///   Value::datetime_zulu_from_str("2011", "05", "11", "02", "03", "04").unwrap());
/// ```
Convenience function for creating a `Value::DateTime` containing a date and time with fractional seconds and a
timezone of Zulu from string values.
Convenience function for creating a ` Value :: DateTime ` containing a date and time with fractional seconds and a timezone of Zulu from string values .
pub fn datetime_full_zulu_from_str<S>(year: S, month: S, day: S, hour: S, minute: S, second: S, frac: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    match Date::from_str(year.clone().into(), month.clone().into(), day.clone().into()) {
      Ok(date) => {
        match Time::from_str(hour.clone().into(), minute.clone().into(), second.clone().into(), Some(frac.clone().into()), Some(
            TimeOffset::Zulu
          )) {
          Ok(time) => Ok(Value::DateTime(DateTime::new(date, Some(time)))),
          Err(error) => Err(error),
        }
      },
      Err(error) => Err(error),
    }
  }
pub fn datetime_full_zulu_from_str < S > ( year : S , month : S , day : S , hour : S , minute : S , second : S , frac : S ) -> Result < Value < ' a > , TOMLError > where S : Into < String > + Clone { match Date :: from_str ( year . clone ( ) . into ( ) , month . clone ( ) . into ( ) , day . clone ( ) . into ( ) ) { Ok ( date ) => { match Time :: from_str ( hour . clone ( ) . into ( ) , minute . clone ( ) . into ( ) , second . clone ( ) . into ( ) , Some ( frac . clone ( ) . into ( ) ) , Some ( TimeOffset :: Zulu ) ) { Ok ( time ) => Ok ( Value :: DateTime ( DateTime :: new ( date , Some ( time ) ) ) ) , Err ( error ) => Err ( error ) , } } , Err ( error ) => Err ( error ) , } }
Convenience function for creating a `Value::DateTime` containing a date and time with fractional seconds and a
timezone of Zulu from string values.
Convenience function for creating a ` Value :: DateTime ` containing a date and time with fractional seconds and a timezone of Zulu from string values .
year
S
month
S
day
S
hour
S
minute
S
second
S
frac
S
year
S
month
S
day
S
hour
S
minute
S
second
S
frac
S
examples
```
use tomllib::types::{Value, DateTime, Date, Time, TimeOffset}.


` ` ` use tomllib :: types :: { Value DateTime Date Time TimeOffset } .