Utility for int date like 20150312.
Project description
VERSION: 0.1.8
Utilities to process the integer format date like: 20150301 First four digits are year. Next two are month. Last two are date.
To file issue, please visit:
https://github.com/jealous/int_date
Documentation for the package is available at:
http://int-date.readthedocs.org/en/latest/int_date.html
Contact author:
LICENSE
BSD License
Example
>>> to_int_date('2015-11-02')
20151102
>>> get_int_day_interval(19831102, 20141225)
11376
>>> get_date_from_int(19831102)
datetime.date(1983, 11, 2)
>>> today()
20150827
>>> in_year(20150412, 2013, 2012)
False
>>> in_month(20150412, 4, 3, 10)
True
>>> in_date(20150412, 2)
False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for int_date-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3974c5209e0c39a121fb3dfd443865c540cc0773dcd8a7d55f914d40bd1d76 |
|
MD5 | 08b5bbb0b876bd0e011d73386488c343 |
|
BLAKE2b-256 | 432731803df15173ab341fe7548c14154b54227dfd8f630daa09a1c6e7db52f7 |