| JavaScript::QuickJS::Date(3pm) | User Contributed Perl Documentation | JavaScript::QuickJS::Date(3pm) |
JavaScript::QuickJS::Date - JavaScript `Date` in Perl
my $date = JavaScript::QuickJS->new()->eval("new Date()");
binmode \*STDOUT, ':encoding(utf-8)';
print $date->toISOString();
This class represents a JavaScript Date <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date> instance in Perl.
This class is not instantiated directly.
All correspond to their JavaScript equivalents:
NB: getYear() and setYear() are omitted by design.
| 2024-10-15 | perl v5.40.0 |