Predicate `Local` conversion fns on `clock` feature
This commit is contained in:
parent
973c603d7a
commit
ad6872c498
|
@ -247,6 +247,7 @@ impl From<DateTime<Utc>> for DateTime<FixedOffset> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert a `DateTime<Utc>` instance into a `DateTime<Local>` instance.
|
/// Convert a `DateTime<Utc>` instance into a `DateTime<Local>` instance.
|
||||||
|
#[cfg(feature="clock")]
|
||||||
impl From<DateTime<Utc>> for DateTime<Local> {
|
impl From<DateTime<Utc>> for DateTime<Local> {
|
||||||
/// Convert this `DateTime<Utc>` instance into a `DateTime<Local>` instance.
|
/// Convert this `DateTime<Utc>` instance into a `DateTime<Local>` instance.
|
||||||
///
|
///
|
||||||
|
@ -268,6 +269,7 @@ impl From<DateTime<FixedOffset>> for DateTime<Utc> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert a `DateTime<FixedOffset>` instance into a `DateTime<Local>` instance.
|
/// Convert a `DateTime<FixedOffset>` instance into a `DateTime<Local>` instance.
|
||||||
|
#[cfg(feature="clock")]
|
||||||
impl From<DateTime<FixedOffset>> for DateTime<Local> {
|
impl From<DateTime<FixedOffset>> for DateTime<Local> {
|
||||||
/// Convert this `DateTime<FixedOffset>` instance into a `DateTime<Local>` instance.
|
/// Convert this `DateTime<FixedOffset>` instance into a `DateTime<Local>` instance.
|
||||||
///
|
///
|
||||||
|
@ -279,6 +281,7 @@ impl From<DateTime<FixedOffset>> for DateTime<Local> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert a `DateTime<Local>` instance into a `DateTime<Utc>` instance.
|
/// Convert a `DateTime<Local>` instance into a `DateTime<Utc>` instance.
|
||||||
|
#[cfg(feature="clock")]
|
||||||
impl From<DateTime<Local>> for DateTime<Utc> {
|
impl From<DateTime<Local>> for DateTime<Utc> {
|
||||||
/// Convert this `DateTime<Local>` instance into a `DateTime<Utc>` instance.
|
/// Convert this `DateTime<Local>` instance into a `DateTime<Utc>` instance.
|
||||||
///
|
///
|
||||||
|
@ -290,6 +293,7 @@ impl From<DateTime<Local>> for DateTime<Utc> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert a `DateTime<Local>` instance into a `DateTime<FixedOffset>` instance.
|
/// Convert a `DateTime<Local>` instance into a `DateTime<FixedOffset>` instance.
|
||||||
|
#[cfg(feature="clock")]
|
||||||
impl From<DateTime<Local>> for DateTime<FixedOffset> {
|
impl From<DateTime<Local>> for DateTime<FixedOffset> {
|
||||||
/// Convert this `DateTime<Local>` instance into a `DateTime<FixedOffset>` instance.
|
/// Convert this `DateTime<Local>` instance into a `DateTime<FixedOffset>` instance.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue