Data::Sah::Coerce::js::date::str - Coerce date from string River stage three • 53 direct dependents • 433 total dependents

This will simply use JavaScript's "Date.parse()", but will throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::date::obj_Date - Coerce date from Date object River stage three • 53 direct dependents • 433 total dependents

This is basically just to throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::date::float_epoch - Coerce date from number (assumed to be epoch) River stage three • 53 direct dependents • 433 total dependents

To avoid confusion with integer that contains "YYYY", "YYYYMM", or "YYYYMMDD", we only do this coercion if data is an integer between 10^8 and 2^31....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::date::str_iso8601 - Coerce date from (a subset of) ISO8601 string River stage three • 53 direct dependents • 433 total dependents

This rule coerces date from a subset of ISO8601 string. Currently only the following formats are accepted: "YYYY-MM-DD" ; # date (local time), e.g.: 2016-05-13 "YYYY-MM-DDThh:mm:ss" ; # date+time (local time), e.g.: 2016-05-13T22:42:00 "YYYY-MM-DDThh...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::date::float_epoch - Coerce date from number (assumed to be epoch) River stage three • 53 direct dependents • 433 total dependents

This rule coerces date from a number that is assumed to be a Unix epoch. To avoid confusion with number that contains "YYYY", "YYYYMM", or "YYYYMMDD", we only do this coercion if data is a number between 10^8 and 2^31. Hence, this rule has a Y2038 pr...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::date::obj_DateTime - Coerce date from DateTime object River stage three • 53 direct dependents • 433 total dependents

This rule coerces date from a DateTime object. If "coerce_to" is "DateTime" that this rule does not do anything. Otherwise, it converts the DateTime object to epoch (if "coerce_to"="float(epoch)") or Time::Moment object (if "coerce_to"="Time::Moment"...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::date::obj_TimeMoment - Coerce date from Time::Moment object River stage three • 53 direct dependents • 433 total dependents

This rule coerces date from a Time::Moment object. If "coerce_to" is "Time::Moment" that this rule does not do anything. Otherwise, it converts the Time::Moment object to epoch (if "coerce_to"="float(epoch)") or DateTime object (if "coerce_to"="DateT...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::date::float_epoch_always - Coerce date from number (assumed to be epoch) River stage three • 53 direct dependents • 433 total dependents

This rule coerces date from number (which assumed to be epoch). If data is a number and "coerce_to" is "float(epoch)" (the default), then this rule does nothing. If "coerce_to" is "DateTime" or "Time::Moment" then this rule instantiates the appropria...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::datetime::obj_Date - Coerce datetime from Date object River stage three • 53 direct dependents • 433 total dependents

This is basically just to throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::datenotime::obj_Date - Coerce datenotime from Date object River stage three • 53 direct dependents • 433 total dependents

This is basically just to throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::datetime::obj_DateTime - Coerce datetime from DateTime object River stage three • 53 direct dependents • 433 total dependents

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::datenotime::obj_DateTime - Coerce datenotime from DateTime object River stage three • 53 direct dependents • 433 total dependents

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::timeofday::obj_DateTimeOfDay - Coerce timeofday from Date::TimeOfDay object River stage three • 53 direct dependents • 433 total dependents

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::duration::obj_DateTimeDuration - Coerce date from DateTime object River stage three • 53 direct dependents • 433 total dependents

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce - Coercion rules for Data::Sah River stage three • 53 direct dependents • 433 total dependents

This distribution contains a standard set of coercion rules for Data::Sah. It is separated from the "Data-Sah" distribution and can be used independently. A coercion rule is put in "Data::Sah::Coerce::$COMPILER::$TARGET_TYPE::$SOURCE_TYPE_AND_EXTRA_D...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::CoerceCommon - Common stuffs for Data::Sah::Coerce and Data::Sah::CoerceJS River stage three • 53 direct dependents • 433 total dependents

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::datetime::str - Coerce datetime from string River stage three • 53 direct dependents • 433 total dependents

This will simply use JavaScript's "Date.parse()", but will throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::js::datenotime::str - Coerce datenotime from string River stage three • 53 direct dependents • 433 total dependents

This will simply use JavaScript's "Date.parse()", but will throw an error when date is invalid....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::timeofday::str_hms - Coerce timeofday from string in the form of hh:mm:ss River stage three • 53 direct dependents • 433 total dependents

Timeofday can be coerced into one of: "float" (seconds after midnight, e.g. 86399 is 23:59:59), "str_hms" (string in the form of hh:mm:ss), or "Date::TimeOfDay" (an instance of Date::TimeOfDay class)....

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

Data::Sah::Coerce::perl::datetime::str_iso8601 - Coerce datetime from (a subset of) ISO8601 string River stage three • 53 direct dependents • 433 total dependents

Currently only the following formats are accepted: "YYYY-MM-DDThh:mm:ss" ; # date+time (local time), e.g.: 2016-05-13T22:42:00 "YYYY-MM-DDThh:mm:ssZ" ; # date+time (UTC), e.g.: 2016-05-13T22:42:00Z "YYYY-MM-DD hh:mm:ss" ; # date+time (local time), My...

PERLANCAR/Data-Sah-Coerce-0.033 - 25 Jan 2019 17:15:07 GMT

21 results (0.032 seconds)