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.
Metadata
Release files for sciencedates 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sciencedates-1.5.0.tar.gz | 7.2 kB | Details |
Release files / sciencedates-1.5.0.tar.gz
| Download URL | sciencedates-1.5.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb7843cc587bcd28c201424090abd3c577722237a6dc183eca643d28c2a550f7
|
|
BLAKE2b-256 checksum How to use checksums |
3ec718efd5e39eafebef74d874689f205d76b3967ec924d7a3d1755c1ad33622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|