rsimple_date 0.1.0

PHP-style date() formatting for Rust — use Y-m-d H:i:s instead of strftime
Documentation
//! PHP predefined date format constants (as PHP format strings).
//!
//! Pass these to [`crate::date`], [`crate::gmdate`], [`crate::date_with`], or
//! [`crate::gmdate_with`] the same way you would use PHP's `DATE_*` constants.

/// Atom (example: 2005-08-15T15:52:01+00:00)
pub const DATE_ATOM: &str = "Y-m-d\\TH:i:sP";

/// HTTP Cookies (example: Monday, 15-Aug-2005 15:52:01 UTC)
pub const DATE_COOKIE: &str = "l, d-M-Y H:i:s T";

/// ISO-8601 (example: 2005-08-15T15:52:01+0000)
pub const DATE_ISO8601: &str = "Y-m-d\\TH:i:sO";

/// RFC 822 (example: Mon, 15 Aug 05 15:52:01 +0000)
pub const DATE_RFC822: &str = "D, d M y H:i:s O";

/// RFC 850 (example: Monday, 15-Aug-05 15:52:01 UTC)
pub const DATE_RFC850: &str = "l, d-M-y H:i:s T";

/// RFC 1036 (example: Mon, 15 Aug 05 15:52:01 +0000)
pub const DATE_RFC1036: &str = "D, d M y H:i:s O";

/// RFC 1123 (example: Mon, 15 Aug 2005 15:52:01 +0000)
pub const DATE_RFC1123: &str = "D, d M Y H:i:s O";

/// RFC 2822 (example: Mon, 15 Aug 2005 15:52:01 +0000)
pub const DATE_RFC2822: &str = "D, d M Y H:i:s O";

/// RFC 3339 (example: 2005-08-15T15:52:01+00:00)
pub const DATE_RFC3339: &str = "Y-m-d\\TH:i:sP";

/// RFC 3339 EXTENDED (example: 2005-08-15T15:52:01.000+00:00)
pub const DATE_RFC3339_EXTENDED: &str = "Y-m-d\\TH:i:s.vP";

/// RSS (example: Mon, 15 Aug 2005 15:52:01 +0000)
pub const DATE_RSS: &str = "D, d M Y H:i:s O";

/// World Wide Web Consortium (example: 2005-08-15T15:52:01+00:00)
pub const DATE_W3C: &str = "Y-m-d\\TH:i:sP";