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 | Provenance | Actions |
|---|---|---|---|---|
| sciencedates-1.5.0.tar.gz | 7.2 kB | Without provenance | Details for sciencedates-1.5.0.tar.gz |
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
|
Security for sciencedates 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.