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.

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.1.tar.gz (48.7 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.1-cp38-none-win_amd64.whl (223.7 kB view details)

Uploaded CPython 3.8Windows x86-64

cftime-1.1.1-cp38-none-win32.whl (183.3 kB view details)

Uploaded CPython 3.8Windows x86

cftime-1.1.1-cp38-cp38-manylinux1_x86_64.whl (301.0 kB view details)

Uploaded CPython 3.8

cftime-1.1.1-cp38-cp38-manylinux1_i686.whl (251.1 kB view details)

Uploaded CPython 3.8

cftime-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl (310.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

cftime-1.1.1-cp37-none-win_amd64.whl (213.9 kB view details)

Uploaded CPython 3.7Windows x86-64

cftime-1.1.1-cp37-none-win32.whl (176.9 kB view details)

Uploaded CPython 3.7Windows x86

cftime-1.1.1-cp37-cp37m-manylinux1_x86_64.whl (316.2 kB view details)

Uploaded CPython 3.7m

cftime-1.1.1-cp37-cp37m-manylinux1_i686.whl (263.6 kB view details)

Uploaded CPython 3.7m

cftime-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl (302.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

cftime-1.1.1-cp36-none-win_amd64.whl (213.6 kB view details)

Uploaded CPython 3.6Windows x86-64

cftime-1.1.1-cp36-none-win32.whl (176.8 kB view details)

Uploaded CPython 3.6Windows x86

cftime-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (316.6 kB view details)

Uploaded CPython 3.6m

cftime-1.1.1-cp36-cp36m-manylinux1_i686.whl (264.1 kB view details)

Uploaded CPython 3.6m

cftime-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl (317.1 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cftime-1.1.1.tar.gz
  • Upload date:
  • Size: 48.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1.tar.gz
Algorithm Hash digest
SHA256 49357111d8f8b69d8d4da533c9f5fc82bd31cc5088652a3ebc5ec5866c57e545
MD5 16f85c9e49bb508ece3a8b340f6695f6
BLAKE2b-256 05ec9233d3b5ba54f9fa50782945527926b987eee38aa9d792133a6713c2a759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 223.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 3ea4545524d1f062acd4b516619a1d4f2f40861e8a89b2bd62888069b789f689
MD5 af2143f40b400ee82f4ced50d494b406
BLAKE2b-256 95c36162bf0d5d7b3ef4891aebf93929cb155d0aa131b8eb6e614397014fe9c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp38-none-win32.whl
  • Upload date:
  • Size: 183.3 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 99aa416d7e4f222d1220c9c035b3610dd24445e3d779246b7ccaf9cb11f6441f
MD5 24e8a4d68306cec5685399e829d852df
BLAKE2b-256 10bdacf144835d143400e017666f9298042bc7c1083a57fd9730b011acb4636a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 301.0 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 57fa384d265794c77368dfc0aab64720a3549d8c63d6b700947100d9d81b22c4
MD5 a2381cb4d88aa1443bcc87806db9c7fc
BLAKE2b-256 aff90b8bab0f2d2e292f73a44faf7a440a5819cc591f25b82a401dd73b7e8e66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 251.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 34b032c6e369a646bb3fdd4399fa58a7adc18a6c3f7440bae472399ca18634f8
MD5 181642bcac25ccea0fb0534180a363f7
BLAKE2b-256 b00d66e9eda34393d349e8d0563eb243ae2ea2aa6a245a02ec38484d4b704c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 310.5 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f3e36002ed06cb7d4e9fc1a91097f18e838a1eed262bbe892710eba7b87d253
MD5 9b77f926cfb3cec14a1025bb906e9e1e
BLAKE2b-256 0a4cce0a002c8ee8b1cd54fba8cbcf8c39b81e9d2055ca2eb4ade641fa88d15e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 213.9 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 4bd61d1e7764fc934810a06a97ad2e8a9b7540145bf45b540660c7587f556b79
MD5 c350a15ac8b5a9f1d531b95556cf7ade
BLAKE2b-256 180e2a231760ce624ed0d2cb130b5909a59cadff5c119d3db5d26c43b6e5855c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp37-none-win32.whl
  • Upload date:
  • Size: 176.9 kB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp37-none-win32.whl
Algorithm Hash digest
SHA256 24647b8e729061ea5000ff535b9fae15f86d9ef1f6fa7b1e8e730a4c2e407abd
MD5 dd42c79ed5808d00e0a97ae2b3157b74
BLAKE2b-256 049e45a9bdcf63b11c615bc75e3d8a5fe20bb95eafb5f63fd610200898017bd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 316.2 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd840cce675a84625a57c5232b6d8f8186454d7bc6b91fe3efe116f85b94011a
MD5 c1695f355913a7124c93afde743c43ed
BLAKE2b-256 cd99700682cb7d9805b7e8694c434fa283b3ddfffcf831b5875400d519b82a19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 263.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 75a43ef87ad84dda22cfdf1cb619c7045ffa537dad10bae60bfc1a79c3d114a1
MD5 8b7c4a7dc574d24549c01acbfa1348f7
BLAKE2b-256 816be4bd2345523664cd6fab6abb3ddde5bfb129bd44af7e46676b75823e54f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 302.3 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e2cc6ac3a6bd1e38e7fb12096a0382b9c61d4ba3bf9a3e3d1ad66d9dd4b0ca5
MD5 fd78d2b87c3256533f22f9d4524081cb
BLAKE2b-256 c27db7bb9e8ed61bb39691c8d13aeef0588077549177148b85843b2e7b34bb5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 213.6 kB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 a9512749fbb229ac5aa2b1a7d376cf98b8f225476120cb0b0162d8fa392e816b
MD5 2cc16592ba1dba67a39609eb3ff25da4
BLAKE2b-256 ea66d93bb4731c15b3943de4607f9c786bf2d5fd1eef2f90b4a59d33df30f8e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp36-none-win32.whl
  • Upload date:
  • Size: 176.8 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp36-none-win32.whl
Algorithm Hash digest
SHA256 f941442f2be9babb58d7f6b8a638aa3c6349d9c742b11a7fac2e31bbd2dbfb28
MD5 22318a6ba2db149fab42388ae9144353
BLAKE2b-256 13d44ba38e1b0312923c5f76f1bc2339b48a02884c70844d4cd104bfd95fb62c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 316.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ada3c0cac7cdc0e1764a1c60f3ce7ab76dc08bfeee4b1b525446729fadc8409
MD5 dc19383cb5bec6df114b784ec02662d7
BLAKE2b-256 14afd106a5e3a0be695f562935c22528626534398c49652c99e226ece59b6672

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 264.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 705fa31a8269442d249df8a5115c048a67c2c2974124a7a3416c2182628675f2
MD5 9256b68d42f3c600971214c2266b33c2
BLAKE2b-256 1154943cbd30eb8a952db710d64d33321562bcb311e98a627c876d551e658ff9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cftime-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 317.1 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.3 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.17.1 CPython/2.7.17

File hashes

Hashes for cftime-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0ca8b561de3c5ca971d45e96dbc0ee10f8adf715f380759b85b5e74ec960ae1c
MD5 59f8c698bc284eeb7feb36bd27600d3a
BLAKE2b-256 f7dbe9b0671c5e12eedaa72d433ebe2f5a1e20b671305502a054c9860df92c8a

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