Tried to make it easier to find specifiers
This commit is contained in:
parent
e165a93a6c
commit
b9b09b8e11
10
src/lib.rs
10
src/lib.rs
|
@ -207,10 +207,13 @@
|
|||
//! # }
|
||||
//! ```
|
||||
//!
|
||||
//! ### Formatting and Parsing
|
||||
//!
|
||||
//! Formatting is done via the [`format`](./struct.DateTime.html#method.format) method,
|
||||
//! which format is equivalent to the familiar `strftime` format.
|
||||
//! (See the [`format::strftime` module documentation](./format/strftime/index.html#specifiers)
|
||||
//! for full syntax.)
|
||||
//!
|
||||
//! See [`format::strftime`](./format/strftime/index.html#specifiers)
|
||||
//! documentation for full syntax and list of specifiers.
|
||||
//!
|
||||
//! The default `to_string` method and `{:?}` specifier also give a reasonable representation.
|
||||
//! Chrono also provides [`to_rfc2822`](./struct.DateTime.html#method.to_rfc2822) and
|
||||
|
@ -288,6 +291,9 @@
|
|||
//! assert!(Utc.datetime_from_str("Sat Nov 28 12:00:09 2014", "%a %b %e %T %Y").is_err());
|
||||
//! ```
|
||||
//!
|
||||
//! Again : See [`format::strftime`](./format/strftime/index.html#specifiers)
|
||||
//! documentation for full syntax and list of specifiers.
|
||||
//!
|
||||
//! ### Conversion from and to EPOCH timestamps
|
||||
//!
|
||||
//! Use [`Utc.timestamp(seconds, nanoseconds)`](./offset/trait.TimeZone.html#method.timestamp)
|
||||
|
|
Loading…
Reference in New Issue