pub struct XsdDateTime(/* private fields */);Expand description
The type xsd:dateTime represents a specific date and time in the format CCYY-MM-DDThh:mm:ss.sss, which is a concatenation of the date and time forms, separated by a literal letter “T”.
All of the same rules that apply to the date and time types are applicable to xsd:dateTime as well.
An optional time zone expression may be added at the end of the value. The letter Z is used to indicate Coordinated Universal Time (UTC). All other time zones are represented by their difference from Coordinated Universal Time in the format +hh:mm, or -hh:mm. These values may range from -14:00 to 14:00. For example, US Eastern Standard Time, which is five hours behind UTC, is represented as -05:00. If no time zone value is present, it is considered unknown; it is not assumed to be UTC.
Implementations§
Source§impl XsdDateTime
impl XsdDateTime
Sourcepub fn as_datetime(&self) -> &DateTime<FixedOffset>
pub fn as_datetime(&self) -> &DateTime<FixedOffset>
Borrow the underlying chrono::DateTime<chrono::FixedOffset>
Sourcepub fn as_datetime_mut(&mut self) -> &mut DateTime<FixedOffset>
pub fn as_datetime_mut(&mut self) -> &mut DateTime<FixedOffset>
Mutably borrow the underlying chrono::DateTime<chrono::FixedOffset>
Trait Implementations§
Source§impl AsMut<DateTime<FixedOffset>> for XsdDateTime
impl AsMut<DateTime<FixedOffset>> for XsdDateTime
Source§fn as_mut(&mut self) -> &mut DateTime<FixedOffset>
fn as_mut(&mut self) -> &mut DateTime<FixedOffset>
Source§impl AsRef<DateTime<FixedOffset>> for XsdDateTime
impl AsRef<DateTime<FixedOffset>> for XsdDateTime
Source§fn as_ref(&self) -> &DateTime<FixedOffset>
fn as_ref(&self) -> &DateTime<FixedOffset>
Source§impl Clone for XsdDateTime
impl Clone for XsdDateTime
Source§fn clone(&self) -> XsdDateTime
fn clone(&self) -> XsdDateTime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more