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.

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

Uploaded Source

Built Distributions

cftime-1.1.2-cp38-none-win_amd64.whl (220.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

cftime-1.1.2-cp38-none-win32.whl (181.4 kB view details)

Uploaded CPython 3.8 Windows x86

cftime-1.1.2-cp38-cp38-manylinux1_x86_64.whl (304.0 kB view details)

Uploaded CPython 3.8

cftime-1.1.2-cp38-cp38-manylinux1_i686.whl (257.1 kB view details)

Uploaded CPython 3.8

cftime-1.1.2-cp38-cp38-macosx_10_9_x86_64.whl (302.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cftime-1.1.2-cp37-none-win_amd64.whl (211.3 kB view details)

Uploaded CPython 3.7 Windows x86-64

cftime-1.1.2-cp37-none-win32.whl (174.9 kB view details)

Uploaded CPython 3.7 Windows x86

cftime-1.1.2-cp37-cp37m-manylinux1_x86_64.whl (319.4 kB view details)

Uploaded CPython 3.7m

cftime-1.1.2-cp37-cp37m-manylinux1_i686.whl (267.1 kB view details)

Uploaded CPython 3.7m

cftime-1.1.2-cp37-cp37m-macosx_10_9_x86_64.whl (294.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

cftime-1.1.2-cp36-none-win_amd64.whl (210.9 kB view details)

Uploaded CPython 3.6 Windows x86-64

cftime-1.1.2-cp36-none-win32.whl (174.8 kB view details)

Uploaded CPython 3.6 Windows x86

cftime-1.1.2-cp36-cp36m-manylinux1_x86_64.whl (320.9 kB view details)

Uploaded CPython 3.6m

cftime-1.1.2-cp36-cp36m-manylinux1_i686.whl (269.2 kB view details)

Uploaded CPython 3.6m

cftime-1.1.2-cp36-cp36m-macosx_10_9_x86_64.whl (310.0 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: cftime-1.1.2.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2.tar.gz
Algorithm Hash digest
SHA256 60395cb6510903a0412dd5383122d471941a3f31db8645c9d691bc8aa8af899f
MD5 5f18eee6087df329cc05f4a20559f742
BLAKE2b-256 30e501886088fd4280604683df7ad37c3a0b6a210bd11e6befc54894e146b578

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 3c0fef577869192f5ca9e5e91f6658ea9c78cf3f71ad3e138727be22cad7353f
MD5 4253128e9c77121fea934213be7a2b9b
BLAKE2b-256 3259f29a16bb0e95cf8a6f924347a847d079c88724682fefe8e69fd49d67463c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp38-none-win32.whl
  • Upload date:
  • Size: 181.4 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 584005cde175c20fa110d056800617b62afd99ea71d1c26ce474bbfc76e4e36e
MD5 3d039a71ec5654fef5a31cead904199f
BLAKE2b-256 6c9dd54697d2b0973cf0c4b19f4f42336d2e51508efa031b6ba6dbf8bf3517a3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8ad4ce2113f17d7e7d75d73b8732b93c54b4dbe5c4e84dc8d8dd7dcd6dda9cf1
MD5 0e0ef95537602399d6d8c9b319a047f1
BLAKE2b-256 b2e6535c7f8a0b58a7f9e86aa22228bb42267edde19bc36dfb06759297cf35df

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 257.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c4c512934aaf621169473f1a8d754b24d4550282f3687f23a0c41e7cfcc55730
MD5 c3fd782d3b7d36c485cfaa0b7ce1445e
BLAKE2b-256 1fa066c69c554c5662fdae119a7c0c3a2fee4daf0623366c77be98d77abf6418

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d454f2dd376a2b5334bca72559bd294cb638c470fd930b5b544541542b888414
MD5 ea575435515308c7513f5ab06a62dfee
BLAKE2b-256 bff2b61e615cb550da073eda6953dfa62af5bf8c0bc57b488b523b817d4fe66a

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 a2261d158e7d6125071d9ad1668e99183deea30ce61f21f5c7b32bbabd6318ed
MD5 de6619854fa76055b46c806fa7d7d176
BLAKE2b-256 7277a6fd0d220e7818aa586a55c87754f9dda88c4f14dd1bbb082c2176518e46

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp37-none-win32.whl
  • Upload date:
  • Size: 174.9 kB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp37-none-win32.whl
Algorithm Hash digest
SHA256 9317e18460d63fdd22ccd14f18545613b0e83d1760e89256aa2da6ce49550b82
MD5 c788280b5b082494026b0758841d8839
BLAKE2b-256 f846ea833c3d3396d59aa5566531999dce2d7eac1a14df2bcfe62dc3dfd18828

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 319.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8f50dda39bc4f859e698af82286922c62af3a5d40fdec3ad6193487f29a7ec3d
MD5 24831ab902d6a7196dbc74f60ded4699
BLAKE2b-256 b84ce1cb3968c0d3bcac3444c9f271e8f39c916142b359878d5b49282ffa40ec

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 267.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e61edcf3d6879a1435f66414c1abd48653271e9b6fd40e90f536eaef8e3d6cdf
MD5 36208d067dd23d3387fa598089105de2
BLAKE2b-256 dae0cb4c4f7ff3c1000d3aed5c4726f4ecb613d7d357cd3d57f2d8b6ce227bcf

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 048a3a81b52be3ea1e8ee3edb9b4012bc4343c0676cd840412ee750e1c1a75c7
MD5 dbaa8b0260db3b150b888fd83253edc9
BLAKE2b-256 afffc24e985adbe59eb262347aecc5f8ef2d00e9836dcc7747860729d4903ba5

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 33366cb796048dc14a25d663eea0b1655dcad2437cc80efd5636fbda4cd06b1b
MD5 de742782ae3d7ca30172d75452bc9043
BLAKE2b-256 931353a9a23b77acab5ea5643f8c7d10578e845f5a8ad65127bd4447ebda46ce

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp36-none-win32.whl
  • Upload date:
  • Size: 174.8 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp36-none-win32.whl
Algorithm Hash digest
SHA256 8be61778a6c041f8be3dd3a771bcc31fd9e8bb52ea263e909223b162fb6ca38d
MD5 13dc64f91f8a1abbeba1efc5d89d70a1
BLAKE2b-256 7847b6a6b8eac1a92b5a204da477ccac205c6e80a90515262a19d1e7212689fb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 320.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6e60a4a6f876c4eeb98340bf6bdfccabb32f617d20dd0337aa0808522617f53f
MD5 8b1189320a27d56165098c606793371d
BLAKE2b-256 c3a7e32404add6225b1f5a2b9efed6aa5bba918da637c8dd6cf85fe4ad7bfdc4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cftime-1.1.2-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 269.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for cftime-1.1.2-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c452bff788a64b72956a7d038e6f46b4bd3e8de6a84fa1601f9a20cbd6c2e4b6
MD5 60e1011ba493cbd80f50fe0ed4a8a786
BLAKE2b-256 33411cf4a82ae2f216784440797f1f322c6dcd49d833361af738f10210cc5b67

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for cftime-1.1.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f95da5ec9bd6345caac178a49a1b452e0603314800c9fd2db8ad0274b7aca6b4
MD5 5e47144ade5a7315e8c6de871de20d1f
BLAKE2b-256 ce5b2150562b17e5df8e6390a52a91bcbd77cab67634337ee0d771e5afb47459

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