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§
Modules§
- formats
- The date format contract: PHP patterns on the server;
frontend_configexports the equivalent Day.js patterns.
Structs§
- Date
Config - The date patterns of the package:
config('query_builder_custom.dates')plus the two legacyconfig('app.date_format*')settings the PHP casts fall back to. - Date
Patterns - One pattern per kind.
- PhpDate
Pattern - A compiled PHP date pattern.
Enums§
- Error
- A date pattern that cannot be used.
Type Aliases§
- Result
- A date pattern that failed validation.