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.

2/12/2019: 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

cftime-1.1.0-cp38-none-win_amd64.whl (222.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

cftime-1.1.0-cp38-none-win32.whl (182.6 kB view details)

Uploaded CPython 3.8 Windows x86

cftime-1.1.0-cp38-cp38-manylinux1_x86_64.whl (299.6 kB view details)

Uploaded CPython 3.8

cftime-1.1.0-cp38-cp38-manylinux1_i686.whl (249.5 kB view details)

Uploaded CPython 3.8

cftime-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl (309.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cftime-1.1.0-cp37-none-win_amd64.whl (212.9 kB view details)

Uploaded CPython 3.7 Windows x86-64

cftime-1.1.0-cp37-none-win32.whl (176.2 kB view details)

Uploaded CPython 3.7 Windows x86

cftime-1.1.0-cp37-cp37m-manylinux1_x86_64.whl (314.6 kB view details)

Uploaded CPython 3.7m

cftime-1.1.0-cp37-cp37m-manylinux1_i686.whl (263.1 kB view details)

Uploaded CPython 3.7m

cftime-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl (300.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cftime-1.1.0-cp36-none-win_amd64.whl (212.5 kB view details)

Uploaded CPython 3.6 Windows x86-64

cftime-1.1.0-cp36-none-win32.whl (176.1 kB view details)

Uploaded CPython 3.6 Windows x86

cftime-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (316.1 kB view details)

Uploaded CPython 3.6m

cftime-1.1.0-cp36-cp36m-manylinux1_i686.whl (265.0 kB view details)

Uploaded CPython 3.6m

cftime-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl (316.6 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

cftime-1.1.0-cp35-none-win_amd64.whl (197.3 kB view details)

Uploaded CPython 3.5 Windows x86-64

cftime-1.1.0-cp35-none-win32.whl (163.2 kB view details)

Uploaded CPython 3.5 Windows x86

cftime-1.1.0-cp35-cp35m-manylinux1_i686.whl (245.4 kB view details)

Uploaded CPython 3.5m

cftime-1.1.0-cp35-cp35m-macosx_10_6_intel.whl (288.2 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 222.4 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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4bef98090dc59ea7559d9f10330c6b502bb2cec7f980eb5c7054f21b0098171e
MD5 ba9de4b3a2bfde2927e29e9d74a4bf35
BLAKE2b-256 763757c12b8dc11771c066a5d0b3cd4aa8db07eec4d9e1ca574cfbd6de13473f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp38-none-win32.whl
  • Upload date:
  • Size: 182.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp38-none-win32.whl
Algorithm Hash digest
SHA256 ca672a03f8d8099caaee7c00af82fbae2449cf74a2016af186a9d4ce31c1bc99
MD5 006a250d15cae3fb88929a74142090d7
BLAKE2b-256 d117d1c6a88f3666e8f5ced854e8dd4160b46aa57654ec7f82b1f14a9b3f1efa

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 299.6 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5aabfc82a4b2ab56840fe662b38aa88da02ad274d77df91f7783184c166d1fa4
MD5 293f9620e256f1971eb9a5c2c1bc982c
BLAKE2b-256 1d5bd7e6f09999dfc4ff46eaaa1bc98f5b7954d7b8cb6835c10b2634ef21e619

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 249.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6847145f504b419901fecaf8f57f400737d0d14b51084554939a5ed330efe55f
MD5 8fa2455d2820a08ff9dfe76eb914006d
BLAKE2b-256 3b8c32d31fdc7c054e92420ecc9d164a6deb03e7973cdc9c136888fa81e0a1b0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 309.8 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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d286a1537c55b9469812b48b861107b6a865ff01ade30608af0f9262b7eb16e7
MD5 c749ff5d21c20675cc3640ef64d7c97d
BLAKE2b-256 ee3942e0b57559961a6ce57a9889a3e8610d85f92bf2faced6b36011728985cc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 212.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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 72552901316d97da65e3655d7adde274881e25aec384a772fc0e31124d90eb15
MD5 6ec07739d97bb0d35faf7d092d5976a7
BLAKE2b-256 cef52ff791eb6a6bd760a0d0b26c736dc84123a08bc8ae5a947f4bb5b96c5c86

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp37-none-win32.whl
  • Upload date:
  • Size: 176.2 kB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp37-none-win32.whl
Algorithm Hash digest
SHA256 389b07787355419b33953f7cb781e152f41762e6b93bca6fb47f6f5e360622b8
MD5 e795e2a9ee66a172313719985e0cff38
BLAKE2b-256 41ab1247bfe851204b6cdd4b9b9b6b4f161863d1135dd3248e49969a634fd4e3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 314.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4b68d6db09a240285800a2e7ff9e7918d01e5d0ce6554a4076c9b7c13b9fdcc4
MD5 f7fe18741b9582efa7a21374e74e331e
BLAKE2b-256 3bb68926a869c40a51cecd925cea7fdfbc92095518db6bc3da27de278b639a53

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 263.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e8c4d2ed4f1083dba616b6f5d1ea236d09abd8c4e194c829b5002dd4fcf70ad4
MD5 67598c623ca9431d7ddda03a4683a86b
BLAKE2b-256 1b9a4e483ddd304ae7467ef4aacd8ae0a4558ab4948709ee69b334c7da9cf446

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 300.7 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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6761d4a7fde0cc678c7466a60b024265a45ebfdcb7c24b7ab6c5acf559c628f9
MD5 f81d7c62eed8ebd1ee6dcfae7db7edc9
BLAKE2b-256 85dc12317c767deb3e31cee6585fff2f8b47a04d6482ea72aba0b2b5bcc6bf2b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 212.5 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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 6ee46d55aac067736ab77c40325a1843af0b800357dbdec7a0c753a9f49e9e44
MD5 5c108e5a2d97d10d944dfd026118f31c
BLAKE2b-256 ae62f08fa8c01eb2fbfe9dde358f05cdf337ca957abea8439ca3aa925c743a3e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp36-none-win32.whl
  • Upload date:
  • Size: 176.1 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp36-none-win32.whl
Algorithm Hash digest
SHA256 29c05a5e703083d25175a6b4c8fb2497ad295a152a14acf7a4dfa1bee0187c4d
MD5 d9e9cf14d9ac57fea317280b59e3a673
BLAKE2b-256 334b021b344c3a031876a13b11bf1047d42da49c92d27056c876f4fa0cda5c4f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 316.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2aca092cc6ff68dc912ea1b0461b99b6aaf3809c4d059f8b684c7d316d9505d1
MD5 11c046eb38262107f20df1541dd0b87d
BLAKE2b-256 5335e2fc52247871c51590d6660e684fdc619a93a29f40e3b64894bd4f8c9041

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 265.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3e0b28a4f3c33ac11759e87e0ac105f119efaf022783c3c3b57993d5780a3b66
MD5 01f76c692b7c5b7a477db73db8663074
BLAKE2b-256 810c9d149937f78764e90591a6fd648279addd6d15e8b8665ee1367af7644573

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 316.6 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.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7041fbddea3a203058bb5262ce72351f09c5bf6b1dd266deca67f5eb8d803a92
MD5 9a2df55f834af0ba76e10388dcafc62e
BLAKE2b-256 efc9383d5a15fcc824f73d95e225fba3738a270d5de67deff39e3594514a7f9e

See more details on using hashes here.

Provenance

File details

Details for the file cftime-1.1.0-cp35-none-win_amd64.whl.

File metadata

  • Download URL: cftime-1.1.0-cp35-none-win_amd64.whl
  • Upload date:
  • Size: 197.3 kB
  • Tags: CPython 3.5, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 de0a57fd14b5d074a8b7c054dc313f7a05e09822770f6c95d543133053c03e8b
MD5 c9ffb26a2c53028bf623d89e76c8d441
BLAKE2b-256 d93fe27c8aa90d4ed42679dbbe689f7ec0aa026e201bc251573b7a6872e64542

See more details on using hashes here.

Provenance

File details

Details for the file cftime-1.1.0-cp35-none-win32.whl.

File metadata

  • Download URL: cftime-1.1.0-cp35-none-win32.whl
  • Upload date:
  • Size: 163.2 kB
  • Tags: CPython 3.5, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp35-none-win32.whl
Algorithm Hash digest
SHA256 49d7c2df6d207b1fe8ec1f31a6cf39b4a089b79ac94abec8e8b89b4ee90393d0
MD5 bbe95fcfb3c9ef23de348c08a7b8e189
BLAKE2b-256 deb932ee813049b8e85da729fac917feeb44c33e068bc8459f3e1c91a6258b2c

See more details on using hashes here.

Provenance

File details

Details for the file cftime-1.1.0-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: cftime-1.1.0-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 245.4 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7109eb347eb3d0e3935b7f7d99180eb529c9f4d6447f1407b47dcc9a564971ee
MD5 08bdc71cac03dfd38c6c09c6d05a9b78
BLAKE2b-256 b52c8c8be91de28456e8463e05e11d2063b7c0860b0b7af92efb4679d96ac683

See more details on using hashes here.

Provenance

File details

Details for the file cftime-1.1.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: cftime-1.1.0-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 288.2 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.16

File hashes

Hashes for cftime-1.1.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 463637de8e961d3d72a2db3c88c0293073820629a75a94371b7323729a1325e6
MD5 59e2447e5c8a938abf15e8e2d57b96ba
BLAKE2b-256 713d3a58b7ba03c3d3f88c78102f08310853fc9f176a640fb70ba95b528ae1f8

See more details on using hashes here.

Provenance

Supported by

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