Make date::DateTime inner chrono::DateTime public

This commit is contained in:
Paul Fariello 2020-10-26 15:17:19 +01:00
commit 3a73ce3fd4

View file

@ -13,7 +13,7 @@ use std::str::FromStr;
/// non-recurring moment in time, with an accuracy of seconds or fraction of /// non-recurring moment in time, with an accuracy of seconds or fraction of
/// seconds, and includes a timezone. /// seconds, and includes a timezone.
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct DateTime(ChronoDateTime<FixedOffset>); pub struct DateTime(pub ChronoDateTime<FixedOffset>);
impl DateTime { impl DateTime {
/// Retrieves the associated timezone. /// Retrieves the associated timezone.