Mango:...estamp(3pm)

πŸ“¦
version 1.30 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Mango::BSON::Timestamp β€” it's literally the Timestamp type bestie, and we're gonna talk about it πŸ’–

(also hi, this is the Mango:...estamp(3pm) page, Perl doc girlies rise up πŸŽ€)


🌸 SYNOPSIS 🌸

use Mango::BSON::Timestamp;

my $ts = Mango::BSON::Timestamp->new(seconds => 23, increment => 5);

see like... two lines and you already got a whole timestamp?? we love a low-effort icon πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so Mango::BSON::Timestamp is a container for the BSON timestamp type that gets used by Mango::BSON. that's it. that's the whole vibe. it holds the timestamp, it doesn't start drama, it doesn't do tricks β€” it just contains 🫢


πŸ’œ ATTRIBUTES πŸ’œ

Mango::BSON::Timestamp implements the following attributes, and yes bestie there's only two so this is a quick scroll:

⭐ seconds

my $seconds = $ts->seconds;
$ts         = $ts->seconds(23);

Seconds. that's the one. the seconds one ⏱️

⭐ increment

my $inc = $ts->increment;
$tz     = $ts->increment(5);

Increment. and yes the variable in that second line is $tz, we don't ask questions, we just copy it exactly, no cap πŸ™ˆ


πŸ”₯ METHODS πŸ”₯

Mango::BSON::Timestamp inherits all methods from Mojo::Base. so whatever Mojo::Base is serving, this thing is serving too β€” main character energy by inheritance, periodt πŸ‘‘


🌈 SEE ALSO 🌈


fr fr go read those if you wanna actually understand the ecosystem, this page is just the timestamp cameo πŸ’€

and that's the whole page bestie!! ✨ this was perl v5.30.3, dated 2020-06-05 β€” so yeah she's a little vintage but she ate and she's still iconic πŸŽ€πŸ’– mwah, go build something πŸ¦‹πŸŒΈ