SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,10 @@
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'