DOKK / manpages / debian 12 / libje-perl / JE::Object::Date.3pm.en
JE::Object::Date(3pm) User Contributed Perl Documentation JE::Object::Date(3pm)

JE::Object::Date - JavaScript Date object class

  use JE;
  $j = new JE;
  $js_date = new JE::Object::Date $j;
  $js_date->value; # 1174886940.466
  "$js_date";      # Sun Mar 25 22:29:00 2007 -0700

This class implements JavaScript Date objects for JE.

See JE::Types and JE::Object for descriptions of most of the methods. Only what is specific to JE::Object::Date is explained here.

Returns the date as the number of seconds since the epoch, with up to three decimal places.
Returns the string 'Date'.

JE, JE::Types, JE::Object

2022-11-19 perl v5.36.0