Return a time duration of days in a cf.TimeDuration object.
cf.D() is equivalent to cf.TimeDuration(1, 'day').
New in version 1.0.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> cf.D()
<CF TimeDuration: 1 day (from Y-MM-DD 00:00:00)>
>>> cf.D(5, hour=12)
<CF TimeDuration: 5 days (from Y-MM-DD 12:00:00)>
>>> cf.D(48.5, minute=30)
<CF TimeDuration: 48.5 days (from Y-MM-DD 00:30:00)>
>>> cf.D(0.25, hour=6, minute=30, second=20)
<CF TimeDuration: 0.25 days (from Y-MM-DD 06:30:20)>
>>> cf.D(0)
<CF TimeDuration: 0 days (from Y-MM-DD 00:00:00)>