> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Cftime

> Cftime: Time-handling functionality from netcdf4-python. A Python demo notebook from ganymede.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/geospatial/cftime/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/geospatial/cftime/cftime.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/geospatial/cftime.ipynb)

Description:
- Time-handling functionality from netcdf4-python.

Resources:
- [GitHub] https://github.com/Unidata/cftime
- [Docs] https://unidata.github.io/cftime/

## Example 1

Calculate the number of days since a date in the past

```python
import cftime
from datetime import datetime

date = datetime(1582, 10, 4, 23)

num = cftime.date2num(date, 'days since 2000-01-01')
num
```
