logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::GPSD3::Return::Unknown::Timestamp - Net::GPSD3 Return Base Class with Timestamp

Author

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

Bugs

       Log on RT and Send to gpsd-dev email list

Description

       Provides a time, timestamp and datetime methods to a GPSD3 Return object.

Methods

time
       Seconds since the Unix epoch, UTC.  The value may have a fractional part of up to .01sec precision.

       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.

       Since the POSIX standard for the Unix epoch does not use leap seconds but GPS system does I do not
       recommend that you use this method for time display or storage.  This method is purely here for backwards
       compatibility.

   timestamp
       W3C formated timestamp value either directly from the protocol >= 3.4 or calculated < 3.4.  The value may
       have a fractional part of up to .01sec precision.

       Note: I expect that in protocol 3.5 the value will be passed directly as TPV->timestamp

   datetime
       Returns a DateTime object

Name

       Net::GPSD3::Return::Unknown::Timestamp - Net::GPSD3 Return Base Class with Timestamp

See Also

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

perl v5.34.0                                       2022-06-16             Net::GPSD3::Ret...nown::Timestamp(3pm)

Support

       DavisNetworks.com supports all Perl applications including this package.

       Try gpsd-dev email list

Synopsis

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

See Also