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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | devel/p5-Time-Duration-Parse-AsHash | 0.10.6 newest | none known | - | [email protected] | - |
| DragonFly | devel/p5-Time-Duration-Parse-AsHash | 0.10.6 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Time-Duration-Parse-AsHash | 0.10.6 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Time-Duration-Parse-AsHash | 0.10.6 newest | no 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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.10.6 | 0.10.6 | - | 0.10.6 | 0.10.6 |
| FreeBSD:14:quarterly | 0.10.6 | 0.10.6 | n/a | 0.10.6 | 0.10.6 |
| FreeBSD:15:latest | 0.10.6 | 0.10.6 | n/a | 0.10.6 | 0.10.6 |
| FreeBSD:15:quarterly | 0.10.6 | 0.10.6 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.10.6 | 0.10.6 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 2
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
| File | Size | SHA256 |
|---|---|---|
| Time-Duration-Parse-AsHash-0.10.6.tar.gz | 15754 | b6776df009d00ef6bc74aa4e487523536b4578fec35dda9a88891b91d0d52831 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.