## CronExpr


A parsed cron expression.


Usage

``` python
CronExpr(expr)
```


## Parameters


`expr: str`  
Cron expression string (5 fields: min hour dom month dow).


## Raises


`ValueError`  
If the expression is malformed.


## Methods

| Name | Description |
|----|----|
| [matches()](#matches) | Check if a datetime matches this cron expression. |

------------------------------------------------------------------------


#### matches()


Check if a datetime matches this cron expression.


Usage

``` python
matches(dt)
```


##### Parameters


`dt`  
A datetime to test.


##### Returns


`bool`  
True if the datetime matches.
