The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.033 - 2019-01-26

  • [Bugfix] date coercion rule float_epoch_always doesn't need to preclude str_iso8601 because they won't be confused: str_iso8601 matches YYYY-MM-DD and not YYYYMMDD.

Modules

Coercion rules for Data::Sah
Coerce 0 to false and 1 to true
Coerce "true","yes",etc to true and "false","no",etc to false
Coerce date from number (assumed to be epoch)
Coerce date from Date object
Coerce date from string
Coerce datenotime from number (assumed to be epoch)
Coerce datenotime from Date object
Coerce datenotime from string
Coerce datetime from number (assumed to be epoch)
Coerce datetime from Date object
Coerce datetime from string
Coerce duration from number (assumed to be number of seconds)
Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
Coerce timeofday from string of the form hh:mm:ss
Convert "yes","true",etc to "1", and "no","false",etc to ""
Coerce date from number (assumed to be epoch)
Coerce date from number (assumed to be epoch)
Coerce date from DateTime object
Coerce date from Time::Moment object
Coerce date from (a subset of) ISO8601 string
Coerce datenotime from number (assumed to be epoch)
Coerce datenotime from number (assumed to be epoch)
Coerce datenotime from DateTime object
Coerce datenotime from Time::Moment object
Coerce datenotime from (a subset of) ISO8601 string
Coerce datetime from number (assumed to be epoch)
Coerce datetime from number (assumed to be epoch)
Coerce datetime from DateTime object
Coerce datetime from Time::Moment object
Coerce datetime from (a subset of) ISO8601 string
Coerce duration from float (assumed to be number of seconds)
Coerce duration from human notation string (e.g. "2 days 10 hours", "3h")
Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
Coerce float from percent string (e.g. "100.5%")
Coerce int from percent string (e.g. "100%")
Coerce timeofday from Date::TimeOfDay object
Coerce timeofday from string in the form of hh:mm:ss
Common stuffs for Data::Sah::Coerce and Data::Sah::CoerceJS
Generate coercer code