BSD Ports

time/p5-DateTime-Precise 1.05nb18 NetBSD

Perl module for common time and date operations with GPS ops

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
Categories
time, perl5
Package size
31.9 KiB, 121.0 KiB installed

Description

The purpose of this library was to replace our dependence on Unix epoch time, which, being limited to a range of about 1970 to 2030, is inadequate for our purposes (we have data as old as 1870). This date library effectively handles dates from A.D. 1000 to infinity, and would probably work all the way back to 0 (ignoring, of course, the switch-over to the Gregorian calendar). The useful features of Unix epoch time (ease of date difference calculation and date comparison, strict ordering) are preserved, and elements such as human-legibility are added. The library handles fractional seconds and some date/time manipulations used for the Global Positioning Satellite system.

The operators +/-, <=>, cmp, stringify are overloaded. Addition handles seconds and fractions of seconds, subtraction handles seconds or date differences, compares work, and stringification returns the a representation of the date.

The US Geological Survey (USGS) likes midnight to be 24:00:00 of the previous day, not 00:00:00 of the day people expect. If $DateTime::Precise::USGSMidnight is set, dprintf will always print midnight as 24:00:00 and the date returned from dprintf will have the previous day's date. Regardless, time is always stored internally as 00:00:00.

In the other systems

SystemPortVersion
NetBSDtime/p5-DateTime-Precise1.05nb18
FreeBSDdevel/p5-DateTime-Precise1.05_1
OpenBSDdevel/p5-DateTime-Precise1.05p0
DragonFlydevel/p5-DateTime-Precise1.05_1
HardenedBSDdevel/p5-DateTime-Precise1.05_1
GhostBSDdevel/p5-DateTime-Precise1.05_1

Install

Binary package:

pkgin install p5-DateTime-Precise

From pkgsrc:

cd /usr/pkgsrc/time/p5-DateTime-Precise && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.05nb18
NetBSD 10.1 aarch641.05nb17
SmartOS / illumos x86_641.05nb18
macOS 15 arm641.05nb18

Dependencies

Run dependencies 1
Required by 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0