bespoke-support/date-guesser
Data Guesser (Standard (non-US) format only)
Maintainers
1.0.6
2021-10-19 08:34 UTC
Requires
- php: ^5|^7|^8
Requires (Dev)
- cakephp/chronos: ^1.2
- nesbot/carbon: ^1|^2
Suggests
- cakephp/chronos: ^1.2
- nesbot/carbon: ^1|^2
Provides
None
Conflicts
None
Replaces
None
MIT f59590f27f29c2e4ad55327c9810eb42d6f0689b
This package is auto-updated.
Last update: 2026-06-19 18:46:37 UTC
README
Allows the creation of a Carbon object when you are unsure of the format presented
$time = '2017-12-31';
// Carbon object
$carbonObj = DateGuesser::create($time);
Allow new formats
DateGuesser::$attemptFormatsAdditional[] = 'd-m-y H:i';
// e.g. 31-12-17 23:59
