cf.m

cf.m(duration=1, month=1, day=1, hour=0, minute=0, second=0)[source]

Return a time duration of minutes in a cf.TimeDuration object.

cf.m() is equivalent to cf.TimeDuration(1, 'minute').

See also

cf.Y, cf.M, cf.D, cf.h, cf.s

New in version 1.0.

Parameters:
duration: number, optional

The number of hours in the time duration.

month, day, hour, minute, second: int, optional

The default date-time elements for defining when a time interval based on this time duration begins or ends. See cf.TimeDuration and cf.TimeDuration.interval for details.

Example:

cf.m(second=30) is equivalent to cf.TimeDuration(1, 'minute', second=30).

Returns:
out: cf.TimeDuration

The new cf.TimeDuration object.

Examples:
>>> cf.m()
<CF TimeDuration: 1 minute (from Y-M-D h:mm:00)>
>>> cf.m(30, second=15)
<CF TimeDuration: 30 minutes (from Y-M-D h:mm:15)>
>>> cf.m(0.5)
<CF TimeDuration: 0.5 minutes (from Y-M-D h:mm:00)>
>>> cf.m(2.5, second=45)
<CF TimeDuration: 2.5 minutes (from Y-M-D h:mm:45)>
>>> cf.m(0)
<CF TimeDuration: 0 minutes (from Y-M-D h:mm:00)>