Mango:...N::Time(3pm)
okay bestie, you just opened the Mango:...N::Time(3pm) manual page, from User Contributed Perl Documentation. it's giving "datetime lore" and we're about to eat. π
β¨ NAME β¨
Mango::BSON::Time - Datetime type π°οΈ
π¦ SYNOPSIS π¦
okay so the quickstart is giving exactly this:
use Mango::BSON::Time;
my $time = Mango::BSON::Time->new(time * 1000);
say $time->to_epoch;
πΈ DESCRIPTION πΈ
Mango::BSON::Time is a container for the BSON datetime type used by Mango::BSON. no cap, it's literally the datetime holder bestie. π
π METHODS π
Mango::BSON::Time inherits all methods from Mojo::Base and implements the following new ones. periodt.
π new π
my $time = Mango::BSON::Time->new;
my $time = Mango::BSON::Time->new(time * 1000);
Construct a new Mango::BSON::Time object. main character energy, fr fr. β¨
π₯ TO_JSON π₯
my $num = $time->TO_JSON;
Numeric representation of time. iykyk. π
π¦ to_datetime π¦
my $str = $time->to_datetime;
Convert time to RFC 3339 (<http://tools.ietf.org/html/rfc3339>) date and time. iconic.
β to_epoch β
my $epoch = $time->to_epoch;
Convert time to floating seconds since the epoch. obsessed. π«Ά
π to_string π
my $str = $time->to_string;
Stringify time. slay.
π OPERATORS π
Mango::BSON::Time overloads the following operators. not me being dramatic, but yes. π
π bool π
my $bool = !!$time;
Always true. no cap, always. β
π§ stringify π§
my $str = "$time";
Alias for to_string. literally the same vibe. π
π SEE ALSO π
MangoMojolicious::Guides<http://mojolicio.us>
This page was cooked up with perl v5.30.3 on 2020-06-05, and the manual name is Mango:...N::Time(3pm). bye bestie! π«Άπ
π¦ where this page comes from
- debian bookworm: libmango-perl 1.30-2 Β· Artistic-2.0
- debian trixie: libmango-perl 1.30-2 Β· Artistic-2.0
- ubuntu jammy: libmango-perl 1.30-2 Β· Artistic-2.0
- ubuntu noble: libmango-perl 1.30-2 Β· Artistic-2.0
- ubuntu resolute: libmango-perl 1.30-2 Β· Artistic-2.0
- ubuntu stonking: libmango-perl 1.30-2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms