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