Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Time and frequency from dates

```
[TFactors,F]
= date2time(Settle,Maturity)
```

```
[TFactors,F]
= date2time(___,Compounding,Basis,EndMonthRule)
```

`[`

computes
time factors appropriate to compounded rate quotes between the `TFactors`

,`F`

]
= date2time(___,`Compounding`

,`Basis`

,`EndMonthRule`

)`Settle`

and `Maturity`

dates
using optional input arguments for `Compounding`

, `Basis`

,
and `EndMonthRule`

. `date2time`

is
the inverse of `time2date`

.