python-timelib
Port variant v13
Summary Parse english textual date descriptions (3.13)
Package version 0.3.0
Homepage https://github.com/pediapress/timelib/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 FEB 2026, 19:33:15 UTC
Port created 25 FEB 2026, 19:33:15 UTC
Subpackage Descriptions
single Usage ===== timelib is a short wrapper around php's internal timelib module. It currently only provides a few functions: timelib.strtodatetime: >>> timelib.strtodatetime("today") datetime.datetime(2009, 6, 23, 0, 0) >>> timelib.strtodatetime("today") datetime.datetime(2009, 6, 23, 0, 0) >>> timelib.strtodatetime("next friday") datetime.datetime(2009, 6, 26, 0, 0) >>> timelib.strtodatetime("29 feb 2008 -108 years") datetime.datetime(1900, 3, 1, 0, 0) timelib.strtotime: >>> import time, timelib >>> time.ctime(timelib.strtotime("now")) 'Tue Jun 23 15:17:32 2009' >>> time.ctime(timelib.strtotime("4 hours ago")) 'Tue Jun 23 11:17:38 2009' >>> time.ctime(timelib.strtotime("20080229 -1 year")) 'Thu Mar 1 01:00:00 2007' Build ===== To build timelib, first create a virtual environment, then run the following command: pip install --upgrade build pip python -m build License ======= ext-date-lib contains unmodified sources from the php source distribution. These are distributed under the `php license`_, version 3.01. The remaining part is distributed under the zlib/libpng license: Copyright (c) 2009-2011 PediaPress GmbH This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. .. _php license: http://www.php.net/license/3_01.txt
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python-Cython:single:v13
python313:dev:std
python-pip:single:v13
python-setuptools:single:v13
python-wheel:single:v13
python-build:single:v13
python-installer:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPI/t/timelib
Distribution File Information
d1b22706557186e6058da88ba0f85837401b2ae9de157f59353dc978d825187a 308768 python-src/timelib-0.3.0.tar.gz
Ports that require python-timelib:v13
No other ports depend on this one.