Skip to main content

Fork of: https://github.com/pediapress/timelib/

Usage

strtotime is a short wrapper around php’s internal timelib module. It currently only provides a few functions:

strtotime.strtodatetime:

>>> strtotime.strtodatetime('today')
datetime.datetime(2009, 6, 23, 0, 0)
>>> strtotime.strtodatetime('today')
datetime.datetime(2009, 6, 23, 0, 0)
>>> strtotime.strtodatetime('next friday')
datetime.datetime(2009, 6, 26, 0, 0)
>>> strtotime.strtodatetime('29 feb 2008 -108 years')
datetime.datetime(1900, 3, 1, 0, 0)

strtotime.strtotime:

>>> import time, strtotime
>>> time.ctime(strtotime.strtotime("now"))
'Tue Jun 23 15:17:32 2009'
>>> time.ctime(strtotime.strtotime("4 hours ago"))
'Tue Jun 23 11:17:38 2009'
>>> time.ctime(strtotime.strtotime("20080229 -1 year"))
'Thu Mar  1 01:00:00 2007'

License

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.

Metadata

Release files for strtotime 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strtotime 1.0.6
File Size Uploaded Provenance
strtotime-1.0.6.zip 620.4 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for strtotime 1.0.6
File
strtotime-1.0.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
strtotime-1.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
strtotime-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
strtotime-1.0.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
strtotime-1.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
strtotime-1.0.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details

Total release size: 4.0 MB

Release files / strtotime-1.0.6.zip

Download URL strtotime-1.0.6.zip
Size 620.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3089a703dee7cf268ffe823875191af3c9c030bf8ea8440a55c041003be413bd
BLAKE2b-256 checksum
How to use checksums
0105f9e04054787725df8c5923657923a7d6d637d316059dea8e9865a2f72010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 569.0 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aa3a13144f81685e3cfc042a41014fc01fc5b261d25c5b0b4375e43ee1707fe7
BLAKE2b-256 checksum
How to use checksums
54cc713fc8e5625ef7c65b4e1a15939d06983095fe502389b8860ffd5f6e8029
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 564.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
316b151653632370ce8f11d04ad7799db70b86ee50c2654ae032d8a898ca1d78
BLAKE2b-256 checksum
How to use checksums
6436805da0988c8c2e1b8997d6d4a9d3195af8b811fe6c470e11e23a315731da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 551.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1b11140a520be6eeeeb26cfa1239a72456a41122b11f31672a2fc53d432ebb64
BLAKE2b-256 checksum
How to use checksums
236fa32bfe35588d7f1d8995e582e5941fc1b0548b590fb334630ea65ab858b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 550.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9473c7b570faa4d845ce770c87d34a832264244a73a5970694ae6066d77d4f79
BLAKE2b-256 checksum
How to use checksums
05380eac4b2ac132269ebcff62c620a1eadfdb93082f3f44b59cf8f78419ff41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 551.2 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
24561ba2e314dc67d4da80b6ba71dffc51c49b20e538b9ccefa7359767c7e088
BLAKE2b-256 checksum
How to use checksums
7ad1a7cc2b4efdff42665fad25aacb61f820f9d517b1740a165a8db5a5c6cb2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / strtotime-1.0.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL strtotime-1.0.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 543.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e8911d90dac6cc8cd729964284188669d3be571c8446bc04a93290aaf8e5abfe
BLAKE2b-256 checksum
How to use checksums
4614df1e6f26702427bbaf3e2309d235825b37c8d13fbc99f03fd425db6d7211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Security for strtotime 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page