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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

cftime-1.1.1.2-cp38-cp38-manylinux1_x86_64.whl (312.6 kB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.8

cftime-1.1.1.2-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.2-cp37-none-win_amd64.whl (214.0 kB view details)

Uploaded CPython 3.7 Windows x86-64

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

Uploaded CPython 3.7 Windows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

cftime-1.1.1.2-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.2-cp36-none-win_amd64.whl (213.7 kB view details)

Uploaded CPython 3.6 Windows x86-64

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

Uploaded CPython 3.6 Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

cftime-1.1.1.2-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.2.tar.gz.

File metadata

  • Download URL: cftime-1.1.1.2.tar.gz
  • Upload date:
  • Size: 49.4 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.2.tar.gz
Algorithm Hash digest
SHA256 35711b5ec3928b9e724817bfa1b7325da205788ee04eae9166cbcd96ea7976a6
MD5 163bb763392c4295a45604d26e3af4a1
BLAKE2b-256 7a6d8a8739bcc0bcc2f5ecf7933c2292f889c2b175cacd595ee34e1cf2ff4bd9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 2405ca220a9f90edbf4836f175fd5535455d8cdd1863213a09f41613c03530fb
MD5 aa4320a8d2e94786460c5d18e3404004
BLAKE2b-256 4a1884c29cc4cc1f1affca3b07570d50c0a24fd7a65cde98652d8fa2ff0e633d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 89ee6f94dbb81c22576f81c939a1b8d985c3bd31f63063babeda7e969339ff3b
MD5 d180fa69c6bc77822884fba37a22e493
BLAKE2b-256 b683ac1db2398272bc7e9aeae37030a08059097289be75b24404ad33e20ac23d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 312.6 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.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 298c97970031c2073064249184395cc040b0ec5f6439720bab2ac49354285715
MD5 b9849ae3ef54f051540617a6612daa3a
BLAKE2b-256 605badfab199cd488f713767d1b4feb352eff401075bd90ac51377f8d68d2ed7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 21a28362757b3a7db4db0e8f174843798116b07c93976f6194d0afe3eb6fe1c0
MD5 86fee36910d84e10052c7146e039cc91
BLAKE2b-256 7e28ca38bd8e56910feba06e570717977a441d1284052bf18f0d802d726579dc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d09d0469e617c78115d860c2483fcc6e5e55154738c7ea7146a3591254aa366f
MD5 2db658fbf34656c0b48432ee88c8d9e0
BLAKE2b-256 7c0fb8a0decd0987275142d5a9057075f5694ae545b1ae44ea2829612ab3338c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9c3698285c77e24a3250d0366d872526470e5333d66874d0c0733ce99e242114
MD5 423734591aef429708983494c8d16c87
BLAKE2b-256 e7632f4144a246fb8b5400c72870899ba63fa41fbd3127ba140f9d85927f7f36

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp37-none-win32.whl
Algorithm Hash digest
SHA256 10974085d22c8345fbaf7ae5dbf8560ddca5477fc899126a2bcd57f65f1f52b0
MD5 39a69c94f42af9294e21ca1902b84336
BLAKE2b-256 3fa793cb51d7da1f088fe46e36357479c5e2617bde2114cf881096a7636ae47e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1a3e9025d315ef7d023a2865f377f105d75907f0c66913fca56158fce8aa6f2e
MD5 6ef67042b22ef7b6f0e5edf4cd670978
BLAKE2b-256 34186b396311707d84206f85ac45331b9cfe9173c6b103de7faccb443522ec6d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 a915c640da4baff6221b87a2ab09f1aef1132611072e300cfd6ccc6960693bc9
MD5 53c65c64a3c900087947a77519be0338
BLAKE2b-256 20a6f86b70a741e7b2fe69c67fd7958b561dc9935c895aed72e372c549051701

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 056a3843f3b74789f73770180d4a80416c0558841c55a22c05a99a04a44d0f1c
MD5 b55c3e535432fb56ca17cefce964bad9
BLAKE2b-256 2984d7353c75388c41fa7430953683ec3f377c1bd4defc667f60f6f3c7a153c9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 43644b85c8a9351f5b208dda7442132c78c782ed2ed86e6cdc8580306f2d9afb
MD5 e4a83d18f7e07a5ba95c8bb09abc603a
BLAKE2b-256 ad5b8aeb37f3cab8b248ebae327c9c34dbf0b42867309cab518b2ec8ae8ab6bb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp36-none-win32.whl
Algorithm Hash digest
SHA256 a47357917b1f28af3a8b53e3fa0004fa1c7b4e454d1744a26fda46571991def5
MD5 da8ba69cce764071efc0be74378eb726
BLAKE2b-256 522b11638b3f7a55a55bb9d7d49f6b00b95ca479f3f8132576b8fbeed69077e9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9d49569ed1c2e8fc3a4c0f95bdbe14a2e146a794ed7a6970dcb54fea455acb88
MD5 1605561a98ff4cf76f37a80c475da60e
BLAKE2b-256 a0ff38302691a715e59084e71464ffc4288d0513f51b4baca4f6c1b5bd865ede

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ba44e4ae980db94e999ae91e160d734c7865ab437e48591a96fe98ad46b541cb
MD5 c358e62f9d6cb2482faf6427b7222f53
BLAKE2b-256 9f0f4762b9ab76f47f5e03ff69e9b45f1459c297a890590314969e6584df3b34

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.1.2-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.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 33a78faacac37cdfb68f998400c81ece5acf368cbf803a9fde7cf01e527d0860
MD5 be4cc1c867e4266279b835a8bfe1f0ba
BLAKE2b-256 44be81cc5640a54112cded0c8c2d6f91e6f4a22b55176d69a5d9b7a223484152

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