JE::Object::Date(3pm)
JE::Object::Date π the JavaScript Date object, but make it Perl
okay bestie, you found the man page for JE::Object::Date, part of the JE Perl distribution (that's the JE::Object::Date(3pm) page, in case the header wasn't obvious π). It's literally the class that implements JavaScript Date objects for JE. Let's get into it β¨
πΈ NAME πΈ
JE::Object::Date β the JavaScript Date object class. no cap, that's the whole name π¦
β¨ SYNOPSIS β¨
here's the vibe, copy-paste ready:
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
see how value hands you a number and stringifying it hands you a whole date? that's the duality, that's the main character energy π
π DESCRIPTION π
This class implements JavaScript Date objects for JE. that's it, that's the job, and it ate π₯
π«Ά METHODS π«Ά
ngl, most of the methods are already documented elsewhere β peep JE::Types and JE::Object for descriptions of most of the methods. Only the stuff that's specific to JE::Object::Date gets explained right here, so pay attention bestie π
valueβ Returns the date as the number of seconds since the epoch, with up to three decimal places. yes, since the epoch, and yes, up to three decimal places β that fractional bit is not a typo, it's giving precision πclassβ Returns the string'Date'. that's the whole thing. iconic behaviour, honestly π
π SEE ALSO π
go read these next, iykyk:
- JE
- JE::Types
- JE::Object
and that's the page!! this lil doc came from perl v5.36.0 and it's dated 2023-08-25 β so if you're reading this way later, hi, hope your date math is still valid π¦β¨ π
π¦ where this page comes from
- debian trixie: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms