devel/py-timelib 0.3.0p1 OpenBSD
short wrapper around PHP's timelib module
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, lang/python
Description
timelib is a short wrapper around a bundled copy of PHP's internal timelib module.
>>> import time, timelib >>> timelib.strtodatetime('today'.encode('utf-8')) datetime.datetime(2022, 10, 4, 0, 0) >>> timelib.strtodatetime('next friday'.encode('utf-8')) datetime.datetime(2022, 10, 7, 0, 0) >>> time.ctime(timelib.strtotime("29 feb 2008 -108 years".encode('utf-8'))) 'Thu Mar 1 00:00:00 1900'
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-timelib | 0.3.0p1 |
| FreeBSD | devel/py-timelib | 0.3.0_1 |
| DragonFly | devel/py-timelib | 0.3.0_1 |
| HardenedBSD | devel/py-timelib | 0.3.0_1 |
| GhostBSD | devel/py-timelib | 0.3.0_1 |
Install
Binary package:
pkg_add py3-timelib
From the ports tree:
cd /usr/ports/devel/py-timelib && make install