-
-
15 Dec 2021 00:05:48 UTC
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (1995 / 36 / 1)
- Kwalitee
Bus factor: 1- 76.69% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (44.06KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
Changes for version 0.052 - 2021-11-28
- [bugfix] Allow access to %gen_coercer_args.
Modules
Coercion rules for Data::SahCoerce 0 to false and 1 to trueCoerce from common true/false words (e.g. "true","yes","on" for true, and "false","no","off" to false)Coerce date from number (assumed to be epoch)Coerce date from Date objectCoerce date from string using Date.parse()Coerce date from number (assumed to be epoch)Coerce date from Date objectCoerce date from string using Date.parse()Coerce date from number (assumed to be epoch)Coerce date from Date objectCoerce date from string using Date.parse()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:ssConvert common true/false words (e.g. "yes","true","on","1" to "1", and "no","false","off","0" to "")Coerce date from number (assumed to be epoch)Coerce date from number (assumed to be epoch)Coerce date from number (all range assumed to be epoch) (Asia/Jakarta time zone)Coerce date from number (all range assumed to be epoch) (local time zone)Coerce date from number (assumed to be epoch) (Asia/Jakarta time zone)Coerce date from number (assumed to be epoch) (local time zone)Coerce date from DateTime objectCoerce date from Time::Moment objectCoerce date from (a subset of) ISO8601 stringCoerce date from number (assumed to be epoch)Coerce date from number (assumed to be epoch)Coerce date from DateTime objectCoerce date from Time::Moment objectCoerce datenotime from (a subset of) ISO8601 stringCoerce date from number (assumed to be epoch)Coerce date from number (assumed to be epoch)Coerce date from DateTime objectCoerce date from Time::Moment objectCoerce datetime from (a subset of) ISO8601 stringCoerce duration from float (assumed to be number of seconds)Coerce duration from DateTime::Duration objectCoerce 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 num from percent string (e.g. "100.5%")Coerce timeofday from Date::TimeOfDay objectCoerce timeofday from string in the form of hh:mm:ssCommon stuffs for Data::Sah::Coerce and Data::Sah::CoerceJSGenerate coercer codeModule Install Instructions
To install Data::Sah::Coerce, copy and paste the appropriate command in to your terminal.
cpanm Data::Sah::Coerce
perl -MCPAN -e shell install Data::Sah::Coerce
For more information on module installation, please visit the detailed CPAN module installation guide.