Return a time duration of calendar months in a cf.TimeDuration object.
cf.M() is equivalent to cf.TimeDuration(1, 'calendar_month').
New in version 1.0.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> cf.M()
<CF TimeDuration: 1 calendar month (from Y-MM-01 00:00:00)>
>>> cf.M(3, day=16)
<CF TimeDuration: 3 calendar months (from Y-MM-16 00:00:00)>
>>> cf.M(24, day=2, hour=12, minute=30, second=2)
<CF TimeDuration: 24 calendar months (from Y-MM-02 12:30:02)>
>>> cf.M(0)
<CF TimeDuration: 0 calendar months (from Y-MM-01 00:00:00)>