</span><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#33'title='goto source code'>[src]</a></span></h1><divclass="docblock type-decl"><preclass='rust struct'>pub struct Utc;</pre></div><divclass='docblock'><p>The UTC time zone. This is the most efficient time zone when you don't need the local time.
<h3id='impl'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></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/offset/utc.rs.html#36-46'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.today'class="method"><spanid='today.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.today'class='fnname'>today</a>() -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#38'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns a <code>Date</code> which corresponds to the current date.</p>
</div><h4id='method.now'class="method"><spanid='now.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.now'class='fnname'>now</a>() -><aclass="struct"href="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#41-45'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns a <code>DateTime</code> which corresponds to the current date.</p>
</div></div><h3id='impl-Offset'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://docs.rs/chrono/0.4.0/chrono/offset/trait.Offset.html"title="trait chrono::offset::Offset">Offset</a> for <aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></code><ahref='#impl-Offset'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/offset/utc.rs.html#64-66'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.fix'class="method"><spanid='fix.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.Offset.html#tymethod.fix'class='fnname'>fix</a>(&self) -><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></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#65'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Returns the fixed offset from UTC to the local time stored.</p>
</div></div><h3id='impl-Eq'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <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="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></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/offset/utc.rs.html#32'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'></div><h3id='impl-PartialEq%3CUtc%3E'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>> for <aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></code><ahref='#impl-PartialEq%3CUtc%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/offset/utc.rs.html#32'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, __arg_0: &<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>) -><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/offset/utc.rs.html#32'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 <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="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></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/offset/utc.rs.html#72-74'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/offset/utc.rs.html#73'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-Debug'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <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="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></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/offset/utc.rs.html#68-70'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/offset/utc.rs.html#69'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>
<divclass='docblock'><p>An associated offset type. This type is used to store the actual offset in date and time types. The original <code>TimeZone</code> value can be recovered via <code>TimeZone::from_offset</code>. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#associatedtype.Offset">Read more</a></p>
</div><h4id='method.from_offset'class="method"><spanid='from_offset.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#tymethod.from_offset'class='fnname'>from_offset</a>(_state: &<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>) -><aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#51'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Reconstructs the time zone from the offset.</p>
</div><h4id='method.offset_from_local_date'class="method"><spanid='offset_from_local_date.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#tymethod.offset_from_local_date'class='fnname'>offset_from_local_date</a>(&self, _local: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/date/struct.NaiveDate.html"title="struct chrono::naive::date::NaiveDate">NaiveDate</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#53-55'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates the offset(s) for given local <code>NaiveDate</code> if possible.</p>
</div><h4id='method.offset_from_local_datetime'class="method"><spanid='offset_from_local_datetime.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#tymethod.offset_from_local_datetime'class='fnname'>offset_from_local_datetime</a>(&self, _local: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#56-58'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates the offset(s) for given local <code>NaiveDateTime</code> if possible.</p>
</div><h4id='method.offset_from_utc_date'class="method"><spanid='offset_from_utc_date.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#tymethod.offset_from_utc_date'class='fnname'>offset_from_utc_date</a>(&self, _utc: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/date/struct.NaiveDate.html"title="struct chrono::naive::date::NaiveDate">NaiveDate</a>) -><aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#60'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates the offset for given UTC <code>NaiveDate</code>. This cannot fail.</p>
</div><h4id='method.offset_from_utc_datetime'class="method"><spanid='offset_from_utc_datetime.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#tymethod.offset_from_utc_datetime'class='fnname'>offset_from_utc_datetime</a>(&self, _utc: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>) -><aclass="struct"href="../mentat_core/struct.Utc.html"title="struct mentat_core::Utc">Utc</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/utc.rs.html#61'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates the offset for given UTC <code>NaiveDateTime</code>. This cannot fail.</p>
</div><h4id='method.ymd'class="method"><spanid='ymd.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.ymd'class='fnname'>ymd</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, month: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, day: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#185-187'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from year, month, day and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.ymd">Read more</a></p>
</div><h4id='method.ymd_opt'class="method"><spanid='ymd_opt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.ymd_opt'class='fnname'>ymd_opt</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, month: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, day: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#205-210'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from year, month, day and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.ymd_opt">Read more</a></p>
</div><h4id='method.yo'class="method"><spanid='yo.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.yo'class='fnname'>yo</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, ordinal: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#227-229'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from year, day of year (DOY or "ordinal") and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.yo">Read more</a></p>
</div><h4id='method.yo_opt'class="method"><spanid='yo_opt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.yo_opt'class='fnname'>yo_opt</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, ordinal: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#238-243'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from year, day of year (DOY or "ordinal") and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.yo_opt">Read more</a></p>
</div><h4id='method.isoywd'class="method"><spanid='isoywd.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.isoywd'class='fnname'>isoywd</a>(&self, year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, week: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, weekday: <aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/enum.Weekday.html"title="enum chrono::Weekday">Weekday</a>) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#262-264'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from ISO week date (year and week number), day of the week (DOW) and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. The resulting <code>Date</code> may have a different year from the input year. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.isoywd">Read more</a></p>
</div><h4id='method.isoywd_opt'class="method"><spanid='isoywd_opt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.isoywd_opt'class='fnname'>isoywd_opt</a>(<br> &self, <br> year: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, <br> week: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> weekday: <aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/enum.Weekday.html"title="enum chrono::Weekday">Weekday</a><br>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#275-280'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>Date</code> from ISO week date (year and week number), day of the week (DOW) and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. The resulting <code>Date</code> may have a different year from the input year. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.isoywd_opt">Read more</a></p>
</div><h4id='method.timestamp'class="method"><spanid='timestamp.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.timestamp'class='fnname'>timestamp</a>(&self, secs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, nsecs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="struct"href="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#296-298'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>DateTime</code> from the number of non-leap seconds since January 1, 1970 0:00:00 UTC (aka "UNIX timestamp") and the number of nanoseconds since the last whole non-leap second. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.timestamp">Read more</a></p>
</div><h4id='method.timestamp_opt'class="method"><spanid='timestamp_opt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.timestamp_opt'class='fnname'>timestamp_opt</a>(&self, secs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, nsecs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#306-311'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Makes a new <code>DateTime</code> from the number of non-leap seconds since January 1, 1970 0:00:00 UTC (aka "UNIX timestamp") and the number of nanoseconds since the last whole non-leap second. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.timestamp_opt">Read more</a></p>
</div><h4id='method.datetime_from_str'class="method"><spanid='datetime_from_str.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.datetime_from_str'class='fnname'>datetime_from_str</a>(<br> &self, <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="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><Self>, <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/offset/mod.rs.html#323-327'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 <code>DateTime</code> with the current offset. See the <code>format::strftime</code> module on the supported escape sequences. <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.datetime_from_str">Read more</a></p>
</div><h4id='method.from_local_date'class="method"><spanid='from_local_date.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_local_date'class='fnname'>from_local_date</a>(&self, local: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/date/struct.NaiveDate.html"title="struct chrono::naive::date::NaiveDate">NaiveDate</a>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#339-344'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Converts the local <code>NaiveDate</code> to the timezone-aware <code>Date</code> if possible.</p>
</div><h4id='method.from_local_datetime'class="method"><spanid='from_local_datetime.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_local_datetime'class='fnname'>from_local_datetime</a>(<br> &self, <br> local: &<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>) -><aclass="enum"href="https://docs.rs/chrono/0.4.0/chrono/offset/enum.LocalResult.html"title="enum chrono::offset::LocalResult">LocalResult</a><<aclass="struct"href="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><Self>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#347-351'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Converts the local <code>NaiveDateTime</code> to the timezone-aware <code>DateTime</code> if possible.</p>
</div><h4id='method.from_utc_date'class="method"><spanid='from_utc_date.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_utc_date'class='fnname'>from_utc_date</a>(&self, utc: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/date/struct.NaiveDate.html"title="struct chrono::naive::date::NaiveDate">NaiveDate</a>) -><aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/date/struct.Date.html"title="struct chrono::date::Date">Date</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#361-363'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Converts the UTC <code>NaiveDate</code> to the local time. The UTC is continuous and thus this cannot fail (but can give the duplicate local time). <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_utc_date">Read more</a></p>
</div><h4id='method.from_utc_datetime'class="method"><spanid='from_utc_datetime.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_utc_datetime'class='fnname'>from_utc_datetime</a>(&self, utc: &<aclass="struct"href="https://docs.rs/chrono/0.4.0/chrono/naive/datetime/struct.NaiveDateTime.html"title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>) -><aclass="struct"href="../mentat_core/struct.DateTime.html"title="struct mentat_core::DateTime">DateTime</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/chrono/0.4.0/src/chrono/offset/mod.rs.html#367-369'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Converts the UTC <code>NaiveDateTime</code> to the local time. The UTC is continuous and thus this cannot fail (but can give the duplicate local time). <ahref="https://docs.rs/chrono/0.4.0/chrono/offset/trait.TimeZone.html#method.from_utc_datetime">Read more</a></p>