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.1.tar.gz (48.7 kB view details)

Uploaded Source

Built Distributions

cftime-1.1.1.1-cp38-none-win_amd64.whl (223.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

cftime-1.1.1.1-cp38-cp38-manylinux1_x86_64.whl (312.5 kB view details)

Uploaded CPython 3.8

cftime-1.1.1.1-cp38-cp38-manylinux1_i686.whl (262.7 kB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

cftime-1.1.1.1-cp37-none-win_amd64.whl (214.0 kB view details)

Uploaded CPython 3.7 Windows x86-64

cftime-1.1.1.1-cp37-none-win32.whl (177.0 kB view details)

Uploaded CPython 3.7 Windows x86

cftime-1.1.1.1-cp37-cp37m-manylinux1_x86_64.whl (327.8 kB view details)

Uploaded CPython 3.7m

cftime-1.1.1.1-cp37-cp37m-manylinux1_i686.whl (275.2 kB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.9+ x86-64

cftime-1.1.1.1-cp36-none-win_amd64.whl (213.7 kB view details)

Uploaded CPython 3.6 Windows x86-64

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

Uploaded CPython 3.6 Windows x86

cftime-1.1.1.1-cp36-cp36m-manylinux1_x86_64.whl (328.2 kB view details)

Uploaded CPython 3.6m

cftime-1.1.1.1-cp36-cp36m-manylinux1_i686.whl (275.7 kB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cftime-1.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.1.tar.gz
Algorithm Hash digest
SHA256 dbae801b8c20340c679eabb8b6d46d7db5c22e2e70b1b68e7ee9f3899d0cb6c8
MD5 28e865434e436bff9c691bfe53ed66a4
BLAKE2b-256 0965c0ed7e05f16ad5fb99f4cb9d12d7d1bf507ab0b690a58f0658f1f49db514

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 223.8 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.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 f4f180a0c71772023f466c01e74e3779cf0b3c450471abb7544bd4861e9139c4
MD5 185e1f02933079a82388cb8a287e6f42
BLAKE2b-256 4786158533050814748214f58c0945315cfa01e4945d5a62be1e2e698de6c029

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.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.1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 b8267ecbaec41c5ba9012bf2d5d657e11c18244314900dda90eb96223a9396d0
MD5 92ac127bc77defceaa88041dd10bdc9e
BLAKE2b-256 be50fdd92b5a19c9fb9c7fe1d1ff783d5fdca99876974f314493a0a8bc988468

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 312.5 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.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3b9a4dec70cd5e6dbd3d3a716a44029c0acdee044c0b5608a11d64f813fc1ed9
MD5 ac993d0e32a46ce91e55dceb7aa2c337
BLAKE2b-256 b7b599865d11af8f5d742fde2f43bda727bf2aff6858fd516d44adbb88a82c6d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 262.7 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.1-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d905db8152d0d55cf00f05924c656e7a36a06cb4749e664d91944d897d865fee
MD5 8f9b1497ace3adf452d377763e668205
BLAKE2b-256 73e5384ab3741ec4f164f848d1f0aecfa1d8939ee5c68d990ae7f2db57a521be

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.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.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a988aaa627be267b68f764f003ef0d6ad88aecf2dbeb8c118a8206ae026d012d
MD5 20bb16b62dae98bdd05b93c65f6ceb0e
BLAKE2b-256 8f77abb4f36515cc0dc6d6d890952084b9bff20fb139dc5dd9bb4702f00b2042

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 214.0 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.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 36d709d6f2dfb90611376729a7a4f4c345fe9e783eee2859e69965b2859f8ac6
MD5 eb531cf5d31c278abc2acb40019e08d0
BLAKE2b-256 b535b34a88f7560c88cf46f5a26a2d8a34759208d47eb2ff85cbb79a7d8c8908

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp37-none-win32.whl
  • Upload date:
  • Size: 177.0 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.1-cp37-none-win32.whl
Algorithm Hash digest
SHA256 716974684427330cabce5f158f0441836ca8464bcfd3b96bf106138d64e4a3f7
MD5 92b49f450dceeede51a27e6585fe27e3
BLAKE2b-256 9867e86686d98760d3d0bd0f63088fbf946caa9df29baebcc6c038f499d792b4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 327.8 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.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3350fa739bd151a677fcd7f3500200fa8f13468c17c8459ebced390aa1266c77
MD5 838e96867edc84b4eff068bec0bf77e8
BLAKE2b-256 c5622300f48b58197b652bcb9d03a4a33de9c440180dbc1f19bd7ed17ba42784

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 275.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.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 26e42ffba81f5dddcd306947f15a1ae1112b893d82e4370f618778102826e192
MD5 ca6d7ad8c82dc3b9eb6ac3a3f9de4206
BLAKE2b-256 bcf593b58408b30f906203f9606c001cc2a1f0813c516bacd01f5e60c14d3797

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.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.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 82d6d1ef0e103e17aaf39e4266459e1b1796ebd4091fe20341ee2d609352d2ce
MD5 dc59a266c84e986a9f43500815592fdf
BLAKE2b-256 b5496c0da015dae5da76f408ebba83dbbc7d00fb6ccf2fe293bdabefeb047ae2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 213.7 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.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 bc10939178c82be6e6e78ad8cc21fff0967fe86554301ba9877d6e432be394f2
MD5 e5b664afdb9e21bb74905d36c7c0d435
BLAKE2b-256 fbd3f01aaadea1662c287cd42a5e432bde2dbd71de6ea767d3f39fdf930e5f2a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.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.1-cp36-none-win32.whl
Algorithm Hash digest
SHA256 d21a700d512fc4968dbc64a82693570fbcba899e976aebd30fd0d532ad1885d3
MD5 fd11cb9f7089395e669f2595f9102b83
BLAKE2b-256 7cf9f6ea12220c27b7892664db6d4d37812d1564c1e9e4e3e4e3b3325acc10bf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 328.2 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.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bbaaf787caaa73904e14b8bd1e669d92187ac71f47db0bbe0113f5c5b342cbb5
MD5 dee33ca7ef8e14fa777759491889ab0d
BLAKE2b-256 8ec97c2893de745c01a190892ab26f6b92ae6ff993f0df1e137f3a05225e0bff

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 275.7 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.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 769c999f4957c8a185d01afec9846aa1cf97672166ab03279662494b928082ae
MD5 8e010ff7b2122346dd2146577a0b10b1
BLAKE2b-256 8c89834b6d88ea88f4e0b8af20f4fd7984c4fdfdada5e76722d07854e4b3b7b8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.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.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 64cde1c378330b2c62608a4e175448f86c464c2f68a98a9206ebc577c91d6f0d
MD5 6fd8a857c675bf6015b499c2034aabbc
BLAKE2b-256 375fe86de094504638481b43b35f411e3d521eac244517802835a8a02341de08

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