Search results for "dist:Data-Sah-Coerce ISO8601"
Data::Sah::Coerce::perl::To_date::From_str::iso8601 - Coerce date from (a subset of) ISO8601 string
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.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce::js::To_duration::From_str::iso8601 - Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
The format is: PnYnMnWnDTnHnMnS Examples: "P1Y2M" (equals to "P14M", 14 months), "P1DT13M" (1 day, 13 minutes)....
PERLANCAR/Data-Sah-Coerce-0.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce::perl::To_duration::From_str::iso8601 - Coerce duration from (subset of) ISO8601 string (e.g. "P1Y2M", "P14M")
The format is: PnYnMnWnDTnHnMnS Examples: "P1Y2M" (equals to "P14M", 14 months), "P1DT13M" (1 day, 13 minutes), "PT2.5M" (2.5 minutes). Duration can be coerced into one of: "float(secs)" (number of seconds) or "DateTime::Duration" (DateTime::Duration...
PERLANCAR/Data-Sah-Coerce-0.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce::perl::To_datetime::From_str::iso8601 - Coerce datetime from (a subset of) ISO8601 string
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.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce::perl::To_datenotime::From_str::iso8601 - Coerce datenotime from (a subset of) ISO8601 string
This rule coerces datenotime from a subset of ISO8601 string. Currently only the following formats are accepted: "YYYY-MM-DD" ; # date (local time), e.g.: 2016-05-13...
PERLANCAR/Data-Sah-Coerce-0.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce - Coercion rules for Data::Sah
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::To_$TARGET_TYPE::From_$SOURCE_TYPE::DE...
PERLANCAR/Data-Sah-Coerce-0.054 - 24 Oct 2023 02:16:28 UTC
Data::Sah::Coerce::perl::To_date::From_float::epoch_always - Coerce date from number (assumed to be epoch)
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.054 - 24 Oct 2023 02:16:28 UTC