Metadata-Version: 2.0
Name: sciencedates
Version: 1.4.1
Summary: Date conversions used in the sciences.
Home-page: https://github.com/scivision/sciencedates
Author: Michael Hirsch, Ph.D.
Author-email: UNKNOWN
License: UNKNOWN
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.6
Requires-Dist: numpy
Requires-Dist: pytz
Requires-Dist: python-dateutil
Provides-Extra: plot
Requires-Dist: xarray; extra == 'plot'
Requires-Dist: matplotlib; extra == 'plot'
Provides-Extra: tests
Requires-Dist: pytest; extra == 'tests'
Requires-Dist: nose; extra == 'tests'
Requires-Dist: coveralls; extra == 'tests'
Requires-Dist: flake8; extra == 'tests'
Requires-Dist: mypy; extra == 'tests'

.. 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)



