Time factors appropriate to compounded rate quotes between
Settle and Maturity dates,
returned as an N-by-1 vector.
Frequency, returned as a scalar of related compounding frequencies.
Note
To obtain accurate results from this function, the
Basis and Maturity
arguments must be consistent. If the Maturity
argument contains months that have 31 days, Basis
must be one of the values that allow months to contain more than 30
days; for example, Basis = 0,
3, or 7.
Although date2time supports serial date numbers,
datetime values are recommended instead. The
datetime data type provides flexible date and time
formats, storage out to nanosecond precision, and properties to account for time
zones and daylight saving time.
To convert serial date numbers or text to datetime values, use the datetime function. For example:
t = datetime(738427.656845093,"ConvertFrom","datenum");
y = year(t)
y =
2021
There are no plans to remove support for serial date number inputs.