Skip to main content

Time-handling functionality from netcdf4-python

Project description

cftime

Time-handling functionality from netcdf4-python

Linux Build Status Windows Build Status PyPI package Coverage Status Tag Status Release Status Commits Status

News

For details on the latest updates, see the Changelog.

5/12/2020: version 1.1.3 released. Add isoformat method for compatibility with python datetime (issue #152). Make 'proleptic_gregorian' default calendar for cftime.datetime so that dayofwk,dayofyr methods don't fail (issue #169).

4/20/2020: version 1.1.2 released. Code optimization, fix logic so only_use_cftime_datimes=False works as expected (issues #158 and #165).

3/16/2020: version 1.1.1 released. Fix bug in microsecond formatting, ensure identical num2date results if input is an array of times, or a single scalar (issue #143).

2/12/2020: version 1.1.0 released. cftime.datetime instances are returned by default from num2date (instead of returning python datetime instances where possible (issue #136)). num2pydate convenience function added (always returns python datetime instances, issue #134). Fix for fraction seconds in reference date string (issue #140). Added daysinmonth attribute (issue #137).

10/25/2019: version 1.0.4.2 released (fix for issue #126).

10/21/2019: version 1.0.4 released.

12/05/2018: version 1.0.3.4 released (just to fix a problem with the source tarball on pypi).

12/05/2018: version 1.0.3.1 released. Bugfix release (fixed issue with installation when cython not installed, regression on 32-bit platforms, workaround for pandas compatibility).

12/01/2018: version 1.0.3 released. Test coverage with coveralls.io, improved round-tripping accuracy for non-real world calendars (like 360_day).

10/27/2018: version 1.0.2 released. Improved accuracy (from approximately 1000 microseconds to 10 microseconds on x86 platforms). Refactored calendar calculations now allow for negative reference years. num2date function now more than an order of magnitude faster. months since units now allowed, but only for 360_day calendar.

08/15/2018: version 1.0.1 released.

11/8/2016: cftime was split out of the netcdf4-python package.

Quick Start

  • Clone GitHub repository (git clone https://github.com/Unidata/cftime.git), or get source tarball from PyPI. Links to Windows and OS X precompiled binary packages are also available on PyPI.

  • Make sure numpy and Cython are installed and you have Python 2.7 or newer.

  • Run python setup.py build, then python setup.py install (with sudo if necessary).

  • To run all the tests, execute py.test.

Documentation

See the online docs for more details.

Project details


Download files

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

Source Distribution

cftime-1.1.3.tar.gz (50.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cftime-1.1.3-cp38-none-win_amd64.whl (222.7 kB view details)

Uploaded CPython 3.8Windows x86-64

cftime-1.1.3-cp38-none-win32.whl (183.0 kB view details)

Uploaded CPython 3.8Windows x86

cftime-1.1.3-cp38-cp38-manylinux1_x86_64.whl (305.8 kB view details)

Uploaded CPython 3.8

cftime-1.1.3-cp38-cp38-manylinux1_i686.whl (258.5 kB view details)

Uploaded CPython 3.8

cftime-1.1.3-cp38-cp38-macosx_10_9_x86_64.whl (304.7 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

cftime-1.1.3-cp37-none-win_amd64.whl (213.5 kB view details)

Uploaded CPython 3.7Windows x86-64

cftime-1.1.3-cp37-none-win32.whl (176.6 kB view details)

Uploaded CPython 3.7Windows x86

cftime-1.1.3-cp37-cp37m-manylinux1_x86_64.whl (321.6 kB view details)

Uploaded CPython 3.7m

cftime-1.1.3-cp37-cp37m-manylinux1_i686.whl (269.7 kB view details)

Uploaded CPython 3.7m

cftime-1.1.3-cp37-cp37m-macosx_10_9_x86_64.whl (296.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

cftime-1.1.3-cp36-none-win_amd64.whl (212.9 kB view details)

Uploaded CPython 3.6Windows x86-64

cftime-1.1.3-cp36-none-win32.whl (176.4 kB view details)

Uploaded CPython 3.6Windows x86

cftime-1.1.3-cp36-cp36m-manylinux1_x86_64.whl (322.4 kB view details)

Uploaded CPython 3.6m

cftime-1.1.3-cp36-cp36m-manylinux1_i686.whl (270.2 kB view details)

Uploaded CPython 3.6m

cftime-1.1.3-cp36-cp36m-macosx_10_9_x86_64.whl (311.9 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file cftime-1.1.3.tar.gz.

File metadata

  • Download URL: cftime-1.1.3.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3.tar.gz
Algorithm Hash digest
SHA256 fd84b8631dca1db9b40a75e18671b9edafd3515580d8ab33ce1ebafee75451f0
MD5 0daac033149b08e36dd0049e497fbd5e
BLAKE2b-256 60cd41a3ea7facd7342496b21536a373a283783ea8b33ef5466b8b0263352e76

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp38-none-win_amd64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 222.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 eab0fb0268fc4743f65eb6efac5998af2b0805d914c2e2f83226531add57fd98
MD5 f78437babd63f4ed1dc5b0dd65fda204
BLAKE2b-256 c7ed2ef9c588cf7eace9bf13faded38a100660f65797af05c322685d77395f1e

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp38-none-win32.whl.

File metadata

  • Download URL: cftime-1.1.3-cp38-none-win32.whl
  • Upload date:
  • Size: 183.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp38-none-win32.whl
Algorithm Hash digest
SHA256 d65d0fcc7120db05ddd34625310bc56038063fddcf63f3129379949d2ee762e9
MD5 9f549d152de6e8a630c10e9e2b336aa8
BLAKE2b-256 6e6a3b881755c646651bb5e47533b54a30dc6c6f7b3d59c97a98da08db3abc4f

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 305.8 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8c9b27142cbd41049346128c8a5b78d292b675a3c185e16ed58645c273156e16
MD5 5ba6b688f5c22b67e215711058b58afe
BLAKE2b-256 2e699dfdff6214dbb383c1f3e0e31defe5554f7eaf18da748f71767f3bcdf9da

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp38-cp38-manylinux1_i686.whl.

File metadata

  • Download URL: cftime-1.1.3-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 258.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7c4d0de4ab846b76f73a9a45d9085e5c6321610e74548bdeaaf6c588fe841587
MD5 bdf00eaf673dee3a34e649c651312816
BLAKE2b-256 1c2461191b888129ff90571eccfac2e1eeaec511371d690002e2cc6543579265

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 304.7 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dd44afef96467f2cb3ec9324e9f471653e5daa55b05198f8da389ccb85d38157
MD5 7690079193b0ec01402f8a534ed128b6
BLAKE2b-256 d9301e998abadacf4978825950726d5c292e8164bb2f0cf709014ed0339c1d4b

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp37-none-win_amd64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 213.5 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 ad0b9db793eae28ed1f53157e87044119c8153bf211420414f2c6b6e27fc86db
MD5 7f5d59e01395b43df0d0fa0a11dcea46
BLAKE2b-256 cde26a239dea52c5d410b622ded6eac5819672b8716811a932602719279887ee

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp37-none-win32.whl.

File metadata

  • Download URL: cftime-1.1.3-cp37-none-win32.whl
  • Upload date:
  • Size: 176.6 kB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp37-none-win32.whl
Algorithm Hash digest
SHA256 555c101a0d03f6f6231253d0d84620a5ffb69757680be532086a70b033b9969b
MD5 c64b762b2feeeb12325f7099049d9b28
BLAKE2b-256 33e9791d1ae4b91dab939a66a4c1df21ec6e26b0bd770a4cd7fe851ea7393af9

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 321.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e1c863e38d410de0b59c5be7799ef05cd6f241cc254c6d656dfdae7546c1025
MD5 829a55e7eda139d8d5aa7fe22bf5a682
BLAKE2b-256 f7bff4dd922de8dbd1083517a6186cca2e7ef47b2a73c0fdd2667a34281b14ef

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: cftime-1.1.3-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 269.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 fb9a5ed38dee8ac43235ba161bf5fb61274e965b9b396a650ba4d515b9d70a7c
MD5 a4f97dfa87187304a5ccea16fe88cbe3
BLAKE2b-256 60ec7fdb7f562f19049c2f5c4cf102ed0cd9bd745e68af7dc82875058899ed51

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 296.3 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9ad8521598be2b354d159538e9572afb4c0d4ac2b0b6240eef7197e1d709a89e
MD5 331266877a9ad91314c28959689ce416
BLAKE2b-256 535a6e3687d38548d9a30398a98df44bf3ac9abbfe7a593ef632a20b7c0284da

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp36-none-win_amd64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 212.9 kB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 3fb1f637aed7391c9a5d718175014f4cf705970e1d596bbc80bcac078eefefb0
MD5 007286d948249d0c809b2b404e2a7032
BLAKE2b-256 a98e50d78deeafd06ec262b755e4be391ead1e916f53b864d6312ff1d2ad445e

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp36-none-win32.whl.

File metadata

  • Download URL: cftime-1.1.3-cp36-none-win32.whl
  • Upload date:
  • Size: 176.4 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp36-none-win32.whl
Algorithm Hash digest
SHA256 bdd3a0b85fda45585529825e0954d6140d6df40b7bc489770e72fa6ce79ab9ea
MD5 e9be3b17ef4f6db9fec4cc5b63ebe23f
BLAKE2b-256 2a046e268c2e8b2ddb616b0c496b601f380970b8dc570013d06970adddd39492

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 322.4 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 623255e0264de5cde085f0027ab03365965f3f416de407b604b00abe676f20f2
MD5 532a9573addb119a67c1c23521d418e9
BLAKE2b-256 0f5eee154e2aabb0beea0c4c7dc3d93c6f64f96a2a2019bbd05afc905439d042

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: cftime-1.1.3-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 270.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ead81301dbfcfef2b452ce6997f4f82cc0c2d968d27a2795251b5cdfc4b17295
MD5 1533c05cafd42b47100171dd82e43ce1
BLAKE2b-256 b3632214b0efc7ed7ad5ca637e0834aafd958aeb8412c6e9f20665c1534a6973

See more details on using hashes here.

File details

Details for the file cftime-1.1.3-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: cftime-1.1.3-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 311.9 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 106d8bd1c144c83de1288c51225fd6846539074b60bb9e05b5e357d5e1eed6b9
MD5 380dc62d861f05a606488322da0d779a
BLAKE2b-256 ee5783412a691d74ff0358e89a086bcd5b4403c35afb85cb0f71964c962c1ecd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page