Skip to main content

Crate php_dates

Crate php_dates 

Source
Expand description

PHP date patterns and the shared PHP/Day.js date format contract of 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.

Re-exports§

pub use formats::Kind;
pub use formats::Purpose;

Modules§

formats
The date format contract: PHP patterns on the server; frontend_config exports the equivalent Day.js patterns.

Structs§

DateConfig
The date patterns of the package: config('query_builder_custom.dates') plus the two legacy config('app.date_format*') settings the PHP casts fall back to.
DatePatterns
One pattern per kind.
PhpDatePattern
A compiled PHP date pattern.

Enums§

Error
A date pattern that cannot be used.

Type Aliases§

Result
A date pattern that failed validation.