php-dates 0.1.0

PHP date() patterns for Rust: strict createFromFormat-style parsing, a pattern resolution contract and a Day.js export, with no framework dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! PHP date patterns and the shared PHP/Day.js date format contract of
//! [`reynotech/laravel-query-builder-custom`](https://github.com/reynotech/laravel-query-builder-custom).
//!
//! The crate has no framework or database dependency: it formats and parses with
//! [`PhpDatePattern`], resolves which pattern applies with [`formats::format`] and exports the contract to a
//! Day.js frontend with [`formats::frontend_config`].

mod config;
mod error;
pub mod formats;
mod php_date;

pub use config::{DateConfig, DatePatterns};
pub use error::{Error, Result};
pub use formats::{Kind, Purpose};
pub use php_date::PhpDatePattern;