Date conversions used in the sciences.
Project description
.. image:: https://zenodo.org/badge/81351748.svg
:target: https://zenodo.org/badge/latestdoi/81351748
.. image:: https://travis-ci.org/scivision/sciencedates.svg?branch=master
:target: https://travis-ci.org/scivision/sciencedates
.. image:: https://coveralls.io/repos/github/scivision/sciencedates/badge.svg?branch=master
:target: https://coveralls.io/github/scivision/sciencedates?branch=master
.. image:: https://ci.appveyor.com/api/projects/status/r6adn3fdvk1qcx4r?svg=true
:target: https://ci.appveyor.com/project/scivision/sciencedates
.. image:: https://api.codeclimate.com/v1/badges/47852e6e896d404d20a5/maintainability
:target: https://codeclimate.com/github/scivision/sciencedates/maintainability
:alt: 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``.
.. contents::
Install
=======
::
python -m pip install -e .
Usage
========
Datetime => Year, DayOfYear
--------------------------
.. code:: python
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)
:target: https://zenodo.org/badge/latestdoi/81351748
.. image:: https://travis-ci.org/scivision/sciencedates.svg?branch=master
:target: https://travis-ci.org/scivision/sciencedates
.. image:: https://coveralls.io/repos/github/scivision/sciencedates/badge.svg?branch=master
:target: https://coveralls.io/github/scivision/sciencedates?branch=master
.. image:: https://ci.appveyor.com/api/projects/status/r6adn3fdvk1qcx4r?svg=true
:target: https://ci.appveyor.com/project/scivision/sciencedates
.. image:: https://api.codeclimate.com/v1/badges/47852e6e896d404d20a5/maintainability
:target: https://codeclimate.com/github/scivision/sciencedates/maintainability
:alt: 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``.
.. contents::
Install
=======
::
python -m pip install -e .
Usage
========
Datetime => Year, DayOfYear
--------------------------
.. code:: python
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 | 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.4.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for sciencedates-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dbc621ee06665b30a335c5467fe17fa72b3ab58e61e7da85726ac9a6ddfac2f |
|
MD5 | e40303a7401012b932d1aa98782821e2 |
|
BLAKE2b-256 | a756c6b8dc66642d947d6e460a606ad40c4e95c5fee6a9535d4a385fd109e3ab |