Data::Sah::Compiler::js::TH::date - js's type handler for type "date" River stage one • 2 direct dependents • 2 total dependents

Unlike in perl compiler where the "date" type can be represented either as int (epoch), DateTime object or Time::Moment object, in js compiler we only represent date with the "Date" object. Date() accept various kinds of arguments, including: * Date(...

PERLANCAR/Data-Sah-JS-0.87 - 14 Sep 2016 12:43:06 GMT

Data::Sah::Compiler::js::TH::duration - js's type handler for type "date" River stage one • 2 direct dependents • 2 total dependents

Currently the "duration" Sah type is represented in JavaScript using number (float, number of seconds). In the future, a choice of coercing to some duration object might be supported, for richer manipulation, like DateTime::Duration in Perl....

PERLANCAR/Data-Sah-JS-0.87 - 14 Sep 2016 12:43:06 GMT

2 results (0.047 seconds)