devel/rubygem-timeliness 0.5.3 MidnightBSD
Fast date/time parser with customisable formats, timezone and I18n support
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, rubygems
Description
Date/time parser for Ruby with the following features:
- Extensible with custom formats and tokens.
- It's pretty fast. Up to 60% faster than Time/Date parse method.
- Control the parser strictness.
- Control behaviour of ambiguous date formats (US vs European e.g. mm/dd/yy, dd/mm/yy).
- I18n support (for months), if I18n gem loaded.
- Fewer WTFs than Time/Date parse method.
- Has no dependencies.
Extracted from the validates_timeliness gem, it has been rewritten cleaner and much faster. It's most suitable for when you need to control the parsing behaviour. It's faster than the Time/Date class parse methods, so it has general appeal.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/rubygem-timeliness | 0.5.3 |
| FreeBSD | devel/rubygem-timeliness | 0.5.3 |
| DragonFly | devel/rubygem-timeliness | 0.5.2 |
| HardenedBSD | devel/rubygem-timeliness | 0.5.3 |
| GhostBSD | devel/rubygem-timeliness | 0.5.3 |
Install
Binary package:
mport install timeliness
From mports:
cd /usr/mports/devel/rubygem-timeliness && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= timeliness>0:devel/rubygem-timeliness
Dependencies
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/timeliness-0.5.3.gem | 29184 | 6175e14a0e072b50d2433d253de3c18ce10c573d909edf55c4b510271ecd5aed |
Master sites 1
- RG