Much more complete explanation for the `chrono::format` module.
Fixes #131, I hope!
This commit is contained in:
parent
c3c34da141
commit
72c1752068
|
@ -1,7 +1,19 @@
|
||||||
// This is a part of Chrono.
|
// This is a part of Chrono.
|
||||||
// See README.md and LICENSE.txt for details.
|
// See README.md and LICENSE.txt for details.
|
||||||
|
|
||||||
//! Formatting utilities for date and time.
|
//! Formatting (and parsing) utilities for date and time.
|
||||||
|
//!
|
||||||
|
//! This module provides the common types and routines to implement,
|
||||||
|
//! for example, [`DateTime::format`](../struct.DateTime.html#method.format) or
|
||||||
|
//! [`DateTime::parse_from_str`](../struct.DateTime.html#method.parse_from_str) methods.
|
||||||
|
//! For most cases you should use these high-level interfaces.
|
||||||
|
//!
|
||||||
|
//! Internally the formatting and parsing shares the same abstract **formatting items**,
|
||||||
|
//! which are just an [`Iterator`](https://doc.rust-lang.org/std/iter/trait.Iterator.html) of
|
||||||
|
//! the [`Item`](./enum.Item.html) type.
|
||||||
|
//! They are generated from more readable **format strings**;
|
||||||
|
//! currently Chrono supports [one built-in syntax closely resembling
|
||||||
|
//! C's `strftime` format](./strftime/index.html).
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
Loading…
Reference in New Issue