math/p5-PDL-DateTime: Add p5-PDL-DateTime 0.004

PDL::DateTime is a subclass of PDL piddle for storing date-time values (scalar
piddles, vectors, matrices or generally ND-piddles):
- its PDL type is always LongLong (64-bit signed integer)
- stored values are microseconds since 1970-01-01T00:00:00.000000Z (can be both
  positive or negative)
- it is still a piddle so you can do all usual PDL arithmetic + PDL::DateTime
  defines some new methods (see below)
This commit is contained in:
Po-Chuan Hsieh 2025-01-29 00:48:52 +08:00
parent c00f409a8c
commit fee588ea9e
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
5 changed files with 38 additions and 0 deletions

View file

@ -817,6 +817,7 @@
SUBDIR += p5-Number-WithError
SUBDIR += p5-Number-WithError-LaTeX
SUBDIR += p5-PDL
SUBDIR += p5-PDL-DateTime
SUBDIR += p5-Parse-Range
SUBDIR += p5-Roman
SUBDIR += p5-Set-IntSpan

View file

@ -0,0 +1,24 @@
PORTNAME= PDL-DateTime
PORTVERSION= 0.004
CATEGORIES= math perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Piddle for keeping high precision (microsecond) timestamps
WWW= https://metacpan.org/dist/PDL-DateTime
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-PDL>=2.014:math/p5-PDL \
p5-Time-Moment>=0.12:devel/p5-Time-Moment
TEST_DEPENDS= p5-Test-Number-Delta>=1.06:devel/p5-Test-Number-Delta
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1736671129
SHA256 (PDL-DateTime-0.004.tar.gz) = 2a2720be5d38b43c2a01722381410380194c64c23ee60ebee56862ba988dd32b
SIZE (PDL-DateTime-0.004.tar.gz) = 28968

View file

@ -0,0 +1,7 @@
PDL::DateTime is a subclass of PDL piddle for storing date-time values (scalar
piddles, vectors, matrices or generally ND-piddles):
- its PDL type is always LongLong (64-bit signed integer)
- stored values are microseconds since 1970-01-01T00:00:00.000000Z (can be both
positive or negative)
- it is still a piddle so you can do all usual PDL arithmetic + PDL::DateTime
defines some new methods (see below)

View file

@ -0,0 +1,3 @@
%%SITE_PERL%%/PDL/DateTime.pm
%%SITE_PERL%%/PDL/DateTime.pod
%%PERL5_MAN3%%/PDL::DateTime.3.gz