<aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">
[<spanclass='inner'>−</span>]
</a>
</span><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#58-61'title='goto source code'>[src]</a></span></h1><divclass="docblock type-decl"><preclass='rust struct'>pub struct DateTime<Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span> { /* fields omitted */ }</pre></div><divclass='docblock'><p>ISO 8601 combined date and time with time zone.</p>
<p>There are some constructors implemented here (the <code>from_*</code> methods), but
the general-purpose constructors are all via the methods on the
<h3id='impl'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#63-236'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.from_utc'class="method"><spanid='from_utc.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.from_utc'class='fnname'>from_utc</a>(<br> datetime: <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>, <br> offset: <Tz as <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>>::<aclass="type"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset"title="type chrono::offset::TimeZone::Offset">Offset</a><br>) -><aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#78-80'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>DateTime</code> with given <em>UTC</em> datetime and offset.
The local datetime should be constructed via the <code>TimeZone</code> trait.</p>
</div><h4id='method.date'class="method"><spanid='date.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.date'class='fnname'>date</a>(&self) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Tz></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#84-86'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Retrieves a date component.</p>
</div><h4id='method.time'class="method"><spanid='time.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.time'class='fnname'>time</a>(&self) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/time/struct.NaiveTime.html"title="struct chrono::naive::time::NaiveTime">NaiveTime</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#91-93'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Retrieves a time component.
Unlike <code>date</code>, this is not associated to the time zone.</p>
</div><h4id='method.timestamp'class="method"><spanid='timestamp.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp'class='fnname'>timestamp</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#98-100'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of non-leap seconds since January 1, 1970 0:00:00 UTC
(aka "UNIX timestamp").</p>
</div><h4id='method.timestamp_millis'class="method"><spanid='timestamp_millis.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp_millis'class='fnname'>timestamp_millis</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#122-124'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of non-leap-milliseconds since January 1, 1970 UTC</p>
<p>Note that this does reduce the number of years that can be represented
from ~584 Billion to ~584 Million. (If this is a problem, please file
an issue to let me know what domain needs millisecond precision over
</div><h4id='method.timestamp_nanos'class="method"><spanid='timestamp_nanos.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp_nanos'class='fnname'>timestamp_nanos</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#146-148'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of non-leap-nanoseconds since January 1, 1970 UTC</p>
<p>Note that this does reduce the number of years that can be represented
from ~584 Billion to ~584. (If this is a problem, please file
an issue to let me know what domain needs nanosecond precision over
</div><h4id='method.timestamp_subsec_millis'class="method"><spanid='timestamp_subsec_millis.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp_subsec_millis'class='fnname'>timestamp_subsec_millis</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#156-158'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of milliseconds since the last second boundary</p>
<p>warning: in event of a leap second, this may exceed 999</p>
<p>note: this is not the number of milliseconds since January 1, 1970 0:00:00 UTC</p>
</div><h4id='method.timestamp_subsec_micros'class="method"><spanid='timestamp_subsec_micros.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp_subsec_micros'class='fnname'>timestamp_subsec_micros</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#166-168'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of microseconds since the last second boundary</p>
<p>warning: in event of a leap second, this may exceed 999_999</p>
<p>note: this is not the number of microseconds since January 1, 1970 0:00:00 UTC</p>
</div><h4id='method.timestamp_subsec_nanos'class="method"><spanid='timestamp_subsec_nanos.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timestamp_subsec_nanos'class='fnname'>timestamp_subsec_nanos</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#176-178'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of nanoseconds since the last second boundary</p>
<p>warning: in event of a leap second, this may exceed 999_999_999</p>
<p>note: this is not the number of nanoseconds since January 1, 1970 0:00:00 UTC</p>
</div><h4id='method.offset'class="method"><spanid='offset.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.offset'class='fnname'>offset</a>(&self) ->&<Tz as <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>>::<aclass="type"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset"title="type chrono::offset::TimeZone::Offset">Offset</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#182-184'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Retrieves an associated offset from UTC.</p>
</div><h4id='method.timezone'class="method"><spanid='timezone.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.timezone'class='fnname'>timezone</a>(&self) -> Tz</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#188-190'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Retrieves an associated time zone.</p>
</div><h4id='method.with_timezone'class="method"><spanid='with_timezone.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.with_timezone'class='fnname'>with_timezone</a><Tz2>(&self, tz: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Tz2) -><aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz2><spanclass="where fmt-newline">where<br> Tz2: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#195-197'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Changes the associated time zone.
This does not change the actual <code>DateTime</code> (but will change the string representation).</p>
</div><h4id='method.checked_add_signed'class="method"><spanid='checked_add_signed.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.checked_add_signed'class='fnname'>checked_add_signed</a>(self, rhs: <aclass="struct"href="https://doc.rust-lang.org/time/time/duration/struct.Duration.html"title="struct time::duration::Duration">Duration</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#203-206'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Adds given <code>Duration</code> to the current date and time.</p>
<p>Returns <code>None</code> when it will result in overflow.</p>
</div><h4id='method.checked_sub_signed'class="method"><spanid='checked_sub_signed.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.checked_sub_signed'class='fnname'>checked_sub_signed</a>(self, rhs: <aclass="struct"href="https://doc.rust-lang.org/time/time/duration/struct.Duration.html"title="struct time::duration::Duration">Duration</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#212-215'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Subtracts given <code>Duration</code> from the current date and time.</p>
<p>Returns <code>None</code> when it will result in overflow.</p>
</div><h4id='method.signed_duration_since'class="method"><spanid='signed_duration_since.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.signed_duration_since'class='fnname'>signed_duration_since</a><Tz2>(self, rhs: <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz2>) -><aclass="struct"href="https://doc.rust-lang.org/time/time/duration/struct.Duration.html"title="struct time::duration::Duration">Duration</a><spanclass="where fmt-newline">where<br> Tz2: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#221-223'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Subtracts another <code>DateTime</code> from the current date and time.
This does not overflow or underflow at all.</p>
</div><h4id='method.naive_utc'class="method"><spanid='naive_utc.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.naive_utc'class='fnname'>naive_utc</a>(&self) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#227-229'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns a view to the naive UTC datetime.</p>
</div><h4id='method.naive_local'class="method"><spanid='naive_local.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.naive_local'class='fnname'>naive_local</a>(&self) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#233-235'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns a view to the naive local datetime.</p>
</div></div><h3id='impl-1'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>></code><ahref='#impl-1'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#244-291'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.parse_from_rfc2822'class="method"><spanid='parse_from_rfc2822.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.parse_from_rfc2822'class='fnname'>parse_from_rfc2822</a>(s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#247-252'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses an RFC 2822 date and time string such as <code>Tue, 1 Jul 2003 10:52:37 +0200</code>,
then returns a new <code>DateTime</code> with a parsed <code>FixedOffset</code>.</p>
</div><h4id='method.parse_from_rfc3339'class="method"><spanid='parse_from_rfc3339.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.parse_from_rfc3339'class='fnname'>parse_from_rfc3339</a>(s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#259-264'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses an RFC 3339 and ISO 8601 date and time string such as <code>1996-12-19T16:39:57-08:00</code>,
then returns a new <code>DateTime</code> with a parsed <code>FixedOffset</code>.</p>
<p>Why isn't this named <code>parse_from_iso8601</code>? That's because ISO 8601 allows some freedom
over the syntax and RFC 3339 exercises that freedom to rigidly define a fixed format.</p>
</div><h4id='method.parse_from_str'class="method"><spanid='parse_from_str.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.parse_from_str'class='fnname'>parse_from_str</a>(<br> s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> fmt: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#286-290'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses a string with the specified format string and
returns a new <code>DateTime</code> with a parsed <code>FixedOffset</code>.
See the <ahref="./format/strftime/index.html"><code>format::strftime</code> module</a>
on the supported escape sequences.</p>
<p>See also <code>Offset::datetime_from_str</code> which gives a local <code>DateTime</code> on specific time zone.</p>
<p>Note that this method <em>requires a timezone</em> in the string. See
</div></div><h3id='impl-2'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>,<br> <Tz as <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>>::<aclass="type"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset"title="type chrono::offset::TimeZone::Offset">Offset</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>, </span></code><ahref='#impl-2'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#293-395'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.to_rfc2822'class="method"><spanid='to_rfc2822.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.to_rfc2822'class='fnname'>to_rfc2822</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#295-298'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns an RFC 2822 date and time string such as <code>Tue, 1 Jul 2003 10:52:37 +0200</code>.</p>
</div><h4id='method.to_rfc3339'class="method"><spanid='to_rfc3339.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.to_rfc3339'class='fnname'>to_rfc3339</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#301-304'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns an RFC 3339 and ISO 8601 date and time string such as <code>1996-12-19T16:39:57-08:00</code>.</p>
</div><h4id='method.to_rfc3339_opts'class="method"><spanid='to_rfc3339_opts.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.to_rfc3339_opts'class='fnname'>to_rfc3339_opts</a>(&self, secform: <aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/datetime/enum.SecondsFormat.html"title="enum chrono::datetime::SecondsFormat">SecondsFormat</a>, use_z: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#330-378'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Return an RFC 3339 and ISO 8601 date and time string with subseconds
formatted as per a <code>SecondsFormat</code>. If passed <code>use_z</code> true and the
</div><h4id='method.format_with_items'class="method"><spanid='format_with_items.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.format_with_items'class='fnname'>format_with_items</a><'a, I>(&self, items: I) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.DelayedFormat.html"title="struct chrono::format::DelayedFormat">DelayedFormat</a><I><spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a><Item = <aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/format/enum.Item.html"title="enum chrono::format::Item">Item</a><'a>> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#382-386'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the combined date and time with the specified formatting items.</p>
</div><h4id='method.format'class="method"><spanid='format.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.format'class='fnname'>format</a>(&self, fmt: &'a <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.DelayedFormat.html"title="struct chrono::format::DelayedFormat">DelayedFormat</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/strftime/struct.StrftimeItems.html"title="struct chrono::format::strftime::StrftimeItems">StrftimeItems</a><'a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#392-394'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the combined date and time with the specified format string.
See the <ahref="./format/strftime/index.html"><code>format::strftime</code> module</a>
</div><h4id='method.lt'class="method"><spanid='lt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt'class='fnname'>lt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#646-651'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4id='method.le'class="method"><spanid='le.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le'class='fnname'>le</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#668-673'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4id='method.gt'class="method"><spanid='gt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt'class='fnname'>gt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#689-694'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4id='method.ge'class="method"><spanid='ge.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge'class='fnname'>ge</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#711-716'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3id='impl-Timelike'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html"title="trait chrono::Timelike">Timelike</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Timelike'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#444-469'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.hour'class="method"><spanid='hour.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.hour'class='fnname'>hour</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#445'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the hour number from 0 to 23.</p>
</div><h4id='method.minute'class="method"><spanid='minute.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.minute'class='fnname'>minute</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#446'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the minute number from 0 to 59.</p>
</div><h4id='method.second'class="method"><spanid='second.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.second'class='fnname'>second</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#447'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the second number from 0 to 59.</p>
</div><h4id='method.nanosecond'class="method"><spanid='nanosecond.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.nanosecond'class='fnname'>nanosecond</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#448'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.nanosecond">Read more</a></p>
</div><h4id='method.with_hour'class="method"><spanid='with_hour.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_hour'class='fnname'>with_hour</a>(&self, hour: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#451-453'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the hour number changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_hour">Read more</a></p>
</div><h4id='method.with_minute'class="method"><spanid='with_minute.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_minute'class='fnname'>with_minute</a>(&self, min: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#456-458'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the minute number changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_minute">Read more</a></p>
</div><h4id='method.with_second'class="method"><spanid='with_second.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_second'class='fnname'>with_second</a>(&self, sec: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#461-463'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the second number changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_second">Read more</a></p>
</div><h4id='method.with_nanosecond'class="method"><spanid='with_nanosecond.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_nanosecond'class='fnname'>with_nanosecond</a>(&self, nano: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#466-468'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with nanoseconds since the whole non-leap second changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#tymethod.with_nanosecond">Read more</a></p>
</div><h4id='method.hour12'class="method"><spanid='hour12.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#method.hour12'class='fnname'>hour12</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/lib.rs.html#898-905'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the hour number from 1 to 12 with a boolean flag, which is false for AM and true for PM. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#method.hour12">Read more</a></p>
</div><h4id='method.num_seconds_from_midnight'class="method"><spanid='num_seconds_from_midnight.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Timelike.html#method.num_seconds_from_midnight'class='fnname'>num_seconds_from_midnight</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/lib.rs.html#944-946'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of non-leap seconds past the last midnight.</p>
</div></div><h3id='impl-Serialize'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Serialize'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1156-1177'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.serialize'class="method"><spanid='serialize.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/serde/1.0.66/serde/ser/trait.Serialize.html#tymethod.serialize'class='fnname'>serialize</a><S>(<br> &self, <br> serializer: S<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<S as <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>>::<aclass="type"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, <S as <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>>::<aclass="type"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1161-1176'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Serialize into a rfc3339 time string</p>
<p>See <ahref="./serde/index.html">the <code>serde</code> module</a> for alternate
serializations.</p>
</div></div><h3id='impl-Datelike'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html"title="trait chrono::Datelike">Datelike</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Datelike'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#397-442'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.year'class="method"><spanid='year.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.year'class='fnname'>year</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#398'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the year number in the calendar date.</p>
</div><h4id='method.month'class="method"><spanid='month.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.month'class='fnname'>month</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#399'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the month number starting from 1. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.month">Read more</a></p>
</div><h4id='method.month0'class="method"><spanid='month0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.month0'class='fnname'>month0</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#400'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the month number starting from 0. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.month0">Read more</a></p>
</div><h4id='method.day'class="method"><spanid='day.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.day'class='fnname'>day</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#401'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the day of month starting from 1. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.day">Read more</a></p>
</div><h4id='method.day0'class="method"><spanid='day0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.day0'class='fnname'>day0</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#402'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the day of month starting from 0. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.day0">Read more</a></p>
</div><h4id='method.ordinal'class="method"><spanid='ordinal.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.ordinal'class='fnname'>ordinal</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#403'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the day of year starting from 1. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.ordinal">Read more</a></p>
</div><h4id='method.ordinal0'class="method"><spanid='ordinal0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.ordinal0'class='fnname'>ordinal0</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#404'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the day of year starting from 0. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.ordinal0">Read more</a></p>
</div><h4id='method.weekday'class="method"><spanid='weekday.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.weekday'class='fnname'>weekday</a>(&self) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/enum.Weekday.html"title="enum chrono::Weekday">Weekday</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#405'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the day of week.</p>
</div><h4id='method.iso_week'class="method"><spanid='iso_week.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.iso_week'class='fnname'>iso_week</a>(&self) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/isoweek/struct.IsoWeek.html"title="struct chrono::naive::isoweek::IsoWeek">IsoWeek</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#406'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the ISO week.</p>
</div><h4id='method.with_year'class="method"><spanid='with_year.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_year'class='fnname'>with_year</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#409-411'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the year number changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_year">Read more</a></p>
</div><h4id='method.with_month'class="method"><spanid='with_month.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_month'class='fnname'>with_month</a>(&self, month: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#414-416'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the month number (starting from 1) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_month">Read more</a></p>
</div><h4id='method.with_month0'class="method"><spanid='with_month0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_month0'class='fnname'>with_month0</a>(&self, month0: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#419-421'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the month number (starting from 0) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_month0">Read more</a></p>
</div><h4id='method.with_day'class="method"><spanid='with_day.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_day'class='fnname'>with_day</a>(&self, day: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#424-426'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the day of month (starting from 1) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_day">Read more</a></p>
</div><h4id='method.with_day0'class="method"><spanid='with_day0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_day0'class='fnname'>with_day0</a>(&self, day0: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#429-431'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the day of month (starting from 0) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_day0">Read more</a></p>
</div><h4id='method.with_ordinal'class="method"><spanid='with_ordinal.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_ordinal'class='fnname'>with_ordinal</a>(&self, ordinal: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#434-436'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the day of year (starting from 1) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_ordinal">Read more</a></p>
</div><h4id='method.with_ordinal0'class="method"><spanid='with_ordinal0.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_ordinal0'class='fnname'>with_ordinal0</a>(&self, ordinal0: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#439-441'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new value with the day of year (starting from 0) changed. <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#tymethod.with_ordinal0">Read more</a></p>
</div><h4id='method.year_ce'class="method"><spanid='year_ce.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#method.year_ce'class='fnname'>year_ce</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/lib.rs.html#794-801'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the absolute year number starting from 1 with a boolean flag, which is false when the year predates the epoch (BCE/BC) and true otherwise (CE/AD). <ahref="https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#method.year_ce">Read more</a></p>
</div><h4id='method.num_days_from_ce'class="method"><spanid='num_days_from_ce.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/trait.Datelike.html#method.num_days_from_ce'class='fnname'>num_days_from_ce</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/lib.rs.html#875-887'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the number of days since January 1, 1 (Day 1) in the proleptic Gregorian calendar.</p>
<divclass='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4id='method.from_str'class="method"><spanid='from_str.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str'class='fnname'>from_str</a>(s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/local/struct.Local.html"title="struct chrono::offset::local::Local">Local</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#574-576'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses a string <code>s</code> to return a value of this type. <ahref="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
<divclass='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4id='method.from_str-1'class="method"><spanid='from_str.v-1'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str'class='fnname'>from_str</a>(s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="../edn/struct.Utc.html"title="struct edn::Utc">Utc</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#565-567'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses a string <code>s</code> to return a value of this type. <ahref="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
<divclass='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4id='method.from_str-2'class="method"><spanid='from_str.v-2'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str'class='fnname'>from_str</a>(s: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>>, <aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/format/struct.ParseError.html"title="struct chrono::format::ParseError">ParseError</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#538-559'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Parses a string <code>s</code> to return a value of this type. <ahref="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str">Read more</a></p>
</div></div><h3id='impl-Ord'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Ord'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#488-490'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.cmp'class="method"><spanid='cmp.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp'class='fnname'>cmp</a>(&self, other: &<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#489'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4id='method.max'class="method"><spanid='max.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max'class='fnname'>max</a>(self, other: Self) -> Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.21.0'>1.21.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#461-464'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Compares and returns the maximum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4id='method.min'class="method"><spanid='min.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min'class='fnname'>min</a>(self, other: Self) -> Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.21.0'>1.21.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#477-480'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Compares and returns the minimum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div></div><h3id='impl-Hash'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Hash'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#492-494'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.hash'class="method"><spanid='hash.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash'class='fnname'>hash</a><H>(&self, state: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H) <spanclass="where fmt-newline">where<br> H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#493'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Feeds this value into the given [<code>Hasher</code>]. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4id='method.hash_slice'class="method"><spanid='hash_slice.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice'class='fnname'>hash_slice</a><H>(data: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H) <spanclass="where fmt-newline">where<br> H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.3.0'>1.3.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#203-209'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3id='impl-Eq'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Eq'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#479-480'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'></div><h3id='impl-Deserialize%3C%27de%3E'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/local/struct.Local.html"title="struct chrono::offset::local::Local">Local</a>></code><ahref='#impl-Deserialize%3C%27de%3E'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1233-1239'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='docblock'><p>Deserialize a value that includes no timezone in its string
representation</p>
<p>The value to be deserialized must be an rfc3339 string.</p>
<p>See <ahref="./serde/index.html">the <code>serde</code> module</a> for alternate
serialization formats.</p>
</div><divclass='impl-items'><h4id='method.deserialize'class="method"><spanid='deserialize.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize'class='fnname'>deserialize</a><D>(<br> deserializer: D<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/local/struct.Local.html"title="struct chrono::offset::local::Local">Local</a>>, <D as <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>>::<aclass="type"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> D: <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1234-1238'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3id='impl-Deserialize%3C%27de%3E-1'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>></code><ahref='#impl-Deserialize%3C%27de%3E-1'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1203-1209'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='docblock'><p>Deserialize a value that optionally includes a timezone offset in its
string representation</p>
<p>The value to be deserialized must be an rfc3339 string.</p>
<p>See <ahref="./serde/index.html">the <code>serde</code> module</a> for alternate
deserialization formats.</p>
</div><divclass='impl-items'><h4id='method.deserialize-1'class="method"><spanid='deserialize.v-1'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize'class='fnname'>deserialize</a><D>(<br> deserializer: D<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/offset/fixed/struct.FixedOffset.html"title="struct chrono::offset::fixed::FixedOffset">FixedOffset</a>>, <D as <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>>::<aclass="type"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> D: <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1204-1208'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3id='impl-Deserialize%3C%27de%3E-2'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="../edn/struct.Utc.html"title="struct edn::Utc">Utc</a>></code><ahref='#impl-Deserialize%3C%27de%3E-2'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1217-1223'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='docblock'><p>Deserialize into a UTC value</p>
<p>The value to be deserialized must be an rfc3339 string.</p>
<p>See <ahref="./serde/index.html">the <code>serde</code> module</a> for alternate
deserialization formats.</p>
</div><divclass='impl-items'><h4id='method.deserialize-2'class="method"><spanid='deserialize.v-2'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize'class='fnname'>deserialize</a><D>(<br> deserializer: D<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><<aclass="struct"href="../edn/struct.Utc.html"title="struct edn::Utc">Utc</a>>, <D as <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>>::<aclass="type"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> D: <aclass="trait"href="https://docs.rs/serde/1.0.66/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#1218-1222'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.66/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3id='impl-PartialEq%3CDateTime%3CTz2%3E%3E'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz, Tz2><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz2>> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>,<br> Tz2: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-PartialEq%3CDateTime%3CTz2%3E%3E'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#475-477'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.eq'class="method"><spanid='eq.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq'class='fnname'>eq</a>(&self, other: &<aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz2>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#476'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4id='method.ne'class="method"><spanid='ne.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne'class='fnname'>ne</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#121'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3id='impl-Display'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>,<br> <Tz as <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>>::<aclass="type"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset"title="type chrono::offset::TimeZone::Offset">Offset</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>, </span></code><ahref='#impl-Display'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#529-533'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.fmt'class="method"><spanid='fmt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html"title="struct core::fmt::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#530-532'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3id='impl-Send'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>,<br> <Tz as <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>>::<aclass="type"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset"title="type chrono::offset::TimeZone::Offset">Offset</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a>, </span></code><ahref='#impl-Send'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#473'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'></div><h3id='impl-Debug'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl<Tz><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="../edn/struct.DateTime.html"title="struct edn::DateTime">DateTime</a><Tz><spanclass="where fmt-newline">where<br> Tz: <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html"title="trait chrono::offset::TimeZone">TimeZone</a>, </span></code><ahref='#impl-Debug'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#523-527'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.fmt-1'class="method"><spanid='fmt.v-1'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html"title="struct core::fmt::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/datetime.rs.html#524-526'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>