magicdate 0.1
pip install magicdate==0.1
Newer version available (0.2.2)
Released:
Convert fuzzy date to a datetime object.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Roberto De Almeida
- Tags datetime , time
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Convert from fuzzy dates like “yesterday”, “next wed”, “Jan 4”, etc., to a datetime object.
This is useful for processing command line arguments:
>>> from optparse import OptionParser >>> import magicdate >>> parser = OptionParser(option_class=magicdate.MagicDateOption) >>> parser.add_option('-s', '--start', dest='start', type='magicdate', default=None) >>> parser.add_option('-e', '--end', dest='end', type='magicdate', default='today')
Now you can pass options like “today”, “1996-01-01”, etc., to your program.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Roberto De Almeida
- Tags datetime , time
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file magicdate-0.1.tar.gz
.
File metadata
- Download URL: magicdate-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f8b17106ec18aa1eec631264415ecda90abc4d99db948af07179f79913ab5cff
|
|
MD5 |
fc25b2efbf98646717986ad40297eae6
|
|
BLAKE2b-256 |
29bd4f8e1a918072018f2b3cab28e8b7b6780d556a0b9de6e80e84986e1b07e7
|
File details
Details for the file magicdate-0.1-py2.4.egg
.
File metadata
- Download URL: magicdate-0.1-py2.4.egg
- Upload date:
- Size: 4.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d7a667704ecf51e7fe95f582799794baba7c15c4b79ac823a7b17221c0eb37d2
|
|
MD5 |
03bfd45e73e7953ff15563abcaaa0871
|
|
BLAKE2b-256 |
9c228b2e762902866fa937c5e895d6c26288914cef2bebfcebb2c37cba842566
|