Net::G...estamp(3pm)

πŸ“¦
version 0.19 Β· 2 versions
  • 0.19 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.19 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, welcome to the User Contributed Perl Documentation page for Net::GPSD3::Return::Unknown::Timestamp β€” it's a Net::GPSD3 Return Base Class with Timestamp πŸ’– it's giving "base class energy," and honestly? iconic.


🌸 SYNOPSIS 🌸

package XXX;
use base qw{Net::GPSD3::Return::Unknown::Timestamp};

like. that's it. you inherit, you get timestamps. slay 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so this thing hands a GPSD3 Return object three little gifts: the time, timestamp and datetime methods. that's the whole vibe. it's a mixin, it's a glow-up, it's literally just here to make sure your object knows what time it is πŸ’…


πŸ‘‘ METHODS πŸ‘‘

⭐ time

Seconds since the Unix epoch, UTC. and lowkey, the value may have a fractional part of up to .01sec precision β€” so like, don't expect infinite decimals, bestie.

Note: in 2.96 (protocol 3.4) the TPV->time format changed from unix epoch to W3C, but this method attempts to hide that change from the user. she's doing her best to keep it seamless, no cap.

and here's the tea, fr fr: since the POSIX standard for the Unix epoch does not use leap seconds but the GPS system does, the author does not recommend you use this method for time display or storage. it's purely here for backwards compatibility. so like… it's a legacy bestie. love her, respect her, maybe don't build your whole clock on her 😭

🌈 timestamp

a W3C formatted timestamp value, either taken directly from the protocol >= 3.4 or calculated for < 3.4. and yup, the value may have a fractional part of up to .01sec precision, same as above. consistency, we love to see it ✨

Note: the author expects that in protocol 3.5 the value will be passed directly as TPV->timestamp. manifesting that for her πŸ•―οΈ

πŸŽ€ datetime

Returns a DateTime object. that's it. that's the method. main character behaviour, honestly πŸ‘‘


πŸ’€ BUGS πŸ’€

found something cursed? Log on RT and Send to gpsd-dev email list. like, both. don't just vibe about it in your notes app, tell the people πŸ™ˆ


🫢 SUPPORT 🫢

DavisNetworks.com supports all Perl applications including this package. periodt. πŸ’…

also: Try gpsd-dev email list β€” the group chat is right there, bestie.


🧚 AUTHOR 🧚

Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>michaelrdavis,tld=>com,account=>perl
http://www.stopllc.com/

the way that he wrote this whole module and then obfuscated his own email… privacy icon πŸ“


This program is free software licensed under the…

The BSD License

The full text of the license can be found in the LICENSE file included with this module. read it, bestie, it's short and it ate 🌸


πŸ’œ SEE ALSO πŸ’œ

  • Net::GPSD3
  • Net::GPSD3::Return::Unknown
  • DateTime::Format::W3CDTF
  • DateTime

the whole friend group, together at last πŸ¦‹


okay that's the whole page!! brought to you by perl v5.34.0 on 2022-06-16 β€” yeah she's a little vintage, but vintage is just pre-loved, and this documentation is still serving πŸ’– stay timestamped, bestie, and hydrate!! 🌸✨

πŸ“¦ where this page comes from