BSD Ports

devel/p5-Time-Duration-Parse-AsHash 0.10.6 FreeBSD

Parse string that represents time duration

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
12.3 KiB, 44.3 KiB installed

Description

Time::Duration::Parse::AsHash is like Time::Duration::Parse except:

  • By default it returns a hashref of parsed duration elements instead of number of seconds There are some circumstances when you want this, e.g. when feeding into DateTime::Duration and you want to count for leap seconds. To return number of seconds like Time::Duration::Parse, pass a true value as the second argument.
  • By default seconds are not rounded For example: "0.1s" or 100ms will return result { seconds => 0.1 }, and "2.3s" will return { seconds => 2.3 }. Also, <01:02:03> being recognized as 1h2min3s, 01:02:03.4567 will also be recognized as 1h2min3.4567s.
  • It recognizes more duration units milliseconds (ms), which will be returned in the seconds key, for example "400ms" returns { seconds => 0.4 }. microseconds. This will also be returned in seconds key. nanoseconds (ns). This will also be returned in seconds key. decades. This will be returned in years key, for example "1.5 decades" will return { years => 15 }.
  • It has a lower startup overhead By avoiding modules like Carp and Exporter::Lite, even strict and warnings (starts up in ~3m vs ~9ms on my computer).

In the other systems

The newest version among them is 0.10.6, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/p5-Time-Duration-Parse-AsHash0.10.6 newestnone known-[email protected]-
DragonFlydevel/p5-Time-Duration-Parse-AsHash0.10.6 newestnone known-[email protected]-
HardenedBSDdevel/p5-Time-Duration-Parse-AsHash0.10.6 newestno data-[email protected]-
GhostBSDdevel/p5-Time-Duration-Parse-AsHash0.10.6 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Time-Duration-Parse-AsHash

From the ports tree:

cd /usr/ports/devel/p5-Time-Duration-Parse-AsHash/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Time-Duration-Parse-AsHash>0:devel/p5-Time-Duration-Parse-AsHash

Packages

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

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.10.60.10.6-0.10.60.10.6
FreeBSD:14:quarterly0.10.60.10.6n/a0.10.60.10.6
FreeBSD:15:latest0.10.60.10.6n/a0.10.60.10.6
FreeBSD:15:quarterly0.10.60.10.6n/an/an/a
FreeBSD:16:latest0.10.60.10.6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Time/Duration/Parse/AsHash.pm
  • %%PERL5_MAN3%%/Time::Duration::Parse::AsHash.3.gz
distinfo 1
FileSizeSHA256
Time-Duration-Parse-AsHash-0.10.6.tar.gz15754b6776df009d00ef6bc74aa4e487523536b4578fec35dda9a88891b91d0d52831
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.