Skip to main content

image Language grade: Python Actions Status Python versions (PyPI) PyPi Download stats

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)

Source distribution for sciencedates 1.5.0
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

Release history Release notifications | RSS feed

This release

1.5.0 This release

1 release file

1.4.5

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

2 release files

1.4.0

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

1 release file

1.2.3

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page