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 is required in Numpy et al for numpy.datetime64.
Install
python -m pip install sciencedates
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)
Julia
Julia examples are provided
Matlab / GNU Octave
Matlab / GNU Octave examples are provided
Fortran
Fortran examples are provided. For Python-like modern Fortran datetime, see Datetime-Fortran.
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.5.0.tar.gz
(7.2 kB
view details)
File details
Details for the file sciencedates-1.5.0.tar.gz.
File metadata
- Download URL: sciencedates-1.5.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb7843cc587bcd28c201424090abd3c577722237a6dc183eca643d28c2a550f7
|
|
| MD5 |
028f0381753434ef4c146fae8eb75775
|
|
| BLAKE2b-256 |
3ec718efd5e39eafebef74d874689f205d76b3967ec924d7a3d1755c1ad33622
|