Return a time duration of minutes in a cf.TimeDuration object.
cf.m() is equivalent to cf.TimeDuration(1, 'minute').
New in version 1.0.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> cf.m()
<CF TimeDuration: 1 minute (from Y-MM-DD hh:mm:00)>
>>> cf.m(30, second=15)
<CF TimeDuration: 30 minutes (from Y-MM-DD hh:mm:15)>
>>> cf.m(0.5)
<CF TimeDuration: 0.5 minutes (from Y-MM-DD hh:mm:00)>
>>> cf.m(2.5, second=45)
<CF TimeDuration: 2.5 minutes (from Y-MM-DD hh:mm:45)>
>>> cf.m(0)
<CF TimeDuration: 0 minutes (from Y-MM-DD hh:mm:00)>