Date conversions used in the sciences.
Project description
Science Dates & Times
Date & time 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.2.tar.gz
(6.0 kB
view hashes)