rsimple_date 0.1.0

PHP-style date() formatting for Rust — use Y-m-d H:i:s instead of strftime
Documentation
//! PHP-style `date()` formatting for Rust.
//!
//! Format dates with familiar PHP tokens instead of strftime-style `%Y-%m-%d`:
//!
//! ```
//! use rsimple_date::{date, gmdate_with};
//!
//! let now = date("Y-m-d H:i:s");
//! assert_eq!(now.len(), 19);
//!
//! assert_eq!(gmdate_with("Y-m-d", 978307200), "2001-01-01");
//! ```
//!
//! # Features
//!
//! - PHP `date()` / `gmdate()` / `time()` style API
//! - Familiar tokens such as `Y-m-d H:i:s`, `c`, `r`, and escapes like `\T`
//! - Predefined format constants (`DATE_ATOM`, `DATE_RFC2822`, …)
//!
//! Chrono is used **internally** and is not part of the public API.
//!
//! # Timezone limitations
//!
//! Offset tokens (`O`, `P`, `p`, `Z`) are accurate. Identifier / DST tokens
//! (`e`, `T`, `I`) are best-effort without an IANA timezone database:
//! `I` is always `"0"`, and `e`/`T` report `"UTC"` or an offset string.

mod constants;
mod format;
mod php_date;

pub use constants::{
    DATE_ATOM, DATE_COOKIE, DATE_ISO8601, DATE_RFC1036, DATE_RFC1123, DATE_RFC2822, DATE_RFC3339,
    DATE_RFC3339_EXTENDED, DATE_RFC822, DATE_RFC850, DATE_RSS, DATE_W3C,
};
pub use php_date::{date, date_with, gmdate, gmdate_with, time};