devel/p5-Time-Duration-Parse-AsHash: Add p5-Time-Duration-Parse-AsHash 0.10.6
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).e83a453f6aPort details
devel/p5-Time-Duration-Parse-AsHash 0.10.6
Parse string that represents time duration
Port info
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- latest: 0.10.6
- Upstream
- up to date
- Last update
- to 0.10.6 · e83a453f6a
- Quarterly
- 2026Q4: 0.10.6
- WWW
- https://metacpan.org/dist/Time-Duration-Parse-AsHash
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install p5-Time-Duration-Parse-AsHashinstalls 0.10.6 fromlatest; fromquarterly(2026Q4) 0.10.6- Port
# cd /usr/ports/devel/p5-Time-Duration-Parse-AsHash && make install clean- Size
- 12 KiB download · 44 KiB installed
- Depends on
- lang/perl5.42 5.42.3
- License
- ART10 or GPLv1+
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 0.10.6 | 0.10.6 | – |
| FreeBSD 15 | 0.10.6 | 0.10.6 | – |
| FreeBSD 14 | 0.10.6 | 0.10.6 | 0.10.6 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 0.10.6 | 0.10.6 | – |
| FreeBSD 14 | 0.10.6 | 0.10.6 | 0.10.6 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 0.10.6.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.