py3-timelib

short wrapper around PHP's timelib module

WWW CVSWeb GITHub
  1. Package version
    py3-timelib-0.3.0
  2. Maintainer
    The OpenBSD ports mailing-list

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'

  • python3

  • lang/cython,python3
  • lang/python/3.10
  • devel/py-build,python3
  • devel/py-installer,python3
  • devel/py-setuptools,python3
  • devel/py-wheel,python3

  • lang/python/3.10