Date conversions used in the sciences.
Project description
sciencedates
Date conversions used in the sciences. The assumption is that datetimes are timezone-naive, as this will be required soon in Numpy et al for numpy.datetime64.
Install
python -m pip install -e .
Usage
Datetime => Year, DayOfYear
import sciencedates as sd
T = '2013-07-02T12'
yeardoy, utsec = sd.datetime2yd(T)
Results in year,DayOfYear; UTC fraction of day [seconds]
(2013102, 72000.0)
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 Distribution
sciencedates-1.4.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for sciencedates-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de37fb4bf86e5f95c8eeda3305ca0e8bc244ae394495817aad20d0a40d4a0c60 |
|
MD5 | c126048dd559098e24b9b4bff4001453 |
|
BLAKE2b-256 | 2413338aa898ffa426e59b1127f372d577d5df15b5a3474ee73a7fbc96bab7f7 |