pub fn datetime_full_from_str<S>(year: S, month: S, day: S, hour: S, minute: S, second: S, frac: S, posneg: S, off_hour: S, off_minute: 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 TimeOffsetAmount::from_str(posneg.clone().into(), off_hour.clone().into(), off_minute.clone().into()) {
          Ok(offset) => {
            match  Time::from_str(hour.clone().into(), minute.clone().into(), second.clone().into(), Some(frac.clone().into()), Some(
                TimeOffset::Time(offset)
              )) {
              Ok(time) => Ok(Value::DateTime(DateTime::new(date, Some(time)))),
              Err(error) => Err(error),
            }
          },
          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 offset from UTC from string values. Returns `Ok(DateTime)` on success and `Err(TOMLError)` on failure.
///
/// # Examples
///
/// ```
/// use tomllib::types::{Value, DateTime, Date, Time, TimeOffset, TimeOffsetAmount};
///
/// assert_eq!(Value::DateTime(DateTime::new(Date::from_str("2011", "05", "11").unwrap(),
///   Some(Time::from_str("02", "03", "04", Some("0864".into()), Some(TimeOffset::Time(TimeOffsetAmount::from_str(
///     "+", "09", "30"
///   ).unwrap()))).unwrap()))),
///   Value::datetime_full_from_str("2011", "05", "11", "02", "03", "04", "0864","+", "09", "30").unwrap());
/// ```
Convenience function for creating a `Value::DateTime` containing a date and time with fractional seconds and a
timezone offset from UTC from string values.
Convenience function for creating a ` Value :: DateTime ` containing a date and time with fractional seconds and a timezone offset from UTC from string values .
pub fn datetime_full_from_str<S>(year: S, month: S, day: S, hour: S, minute: S, second: S, frac: S, posneg: S, off_hour: S, off_minute: 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 TimeOffsetAmount::from_str(posneg.clone().into(), off_hour.clone().into(), off_minute.clone().into()) {
          Ok(offset) => {
            match  Time::from_str(hour.clone().into(), minute.clone().into(), second.clone().into(), Some(frac.clone().into()), Some(
                TimeOffset::Time(offset)
              )) {
              Ok(time) => Ok(Value::DateTime(DateTime::new(date, Some(time)))),
              Err(error) => Err(error),
            }
          },
          Err(error) => Err(error),
        }
      },
      Err(error) => Err(error),
    }
  }
pub fn datetime_full_from_str < S > ( year : S , month : S , day : S , hour : S , minute : S , second : S , frac : S , posneg : S , off_hour : S , off_minute : 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 TimeOffsetAmount :: from_str ( posneg . clone ( ) . into ( ) , off_hour . clone ( ) . into ( ) , off_minute . clone ( ) . into ( ) ) { Ok ( offset ) => { match Time :: from_str ( hour . clone ( ) . into ( ) , minute . clone ( ) . into ( ) , second . clone ( ) . into ( ) , Some ( frac . clone ( ) . into ( ) ) , Some ( TimeOffset :: Time ( offset ) ) ) { Ok ( time ) => Ok ( Value :: DateTime ( DateTime :: new ( date , Some ( time ) ) ) ) , Err ( error ) => Err ( error ) , } } , 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 offset from UTC from string values.
Convenience function for creating a ` Value :: DateTime ` containing a date and time with fractional seconds and a timezone offset from UTC from string values .
year
S
month
S
day
S
hour
S
minute
S
second
S
frac
S
posneg
S
off_hour
S
off_minute
S
year
S
month
S
day
S
hour
S
minute
S
second
S
frac
S
posneg
S
off_hour
S
off_minute
S
examples
```
use tomllib::types::{Value, DateTime, Date, Time, TimeOffset, TimeOffsetAmount}.


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