Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Date conversions used in the sciences.

Project description

https://travis-ci.org/scivision/sciencedates.svg?branch=master https://coveralls.io/repos/github/scivision/sciencedates/badge.svg?branch=master https://ci.appveyor.com/api/projects/status/r6adn3fdvk1qcx4r?svg=true Maintainability

sciencedates

Date 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

This version
History Node

1.4.1

History Node

1.4.0

History Node

1.3.5

History Node

1.3.4

History Node

1.3.3

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.7

History Node

1.2.6

History Node

1.2.5

History Node

1.2.4

History Node

1.2.3

History Node

1.2.1

History Node

1.2

History Node

1.1.1

History Node

1.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sciencedates-1.4.1-py3-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 3, 2018
sciencedates-1.4.1.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None Jun 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page