parameters: (float_seconds)
return_statement: return Duration(secs, nsecs)
docstring: Create new Duration instance from float seconds format.
          
          :param float_seconds: time value in specified as float seconds, ``float``
          :returns: :class:`Duration` instance for specified float_seconds
docstring_summary: Create new Duration instance from float seconds format.
          
          :param float_seconds: time value in specified as float seconds, ``float``
          :returns: :class:`Duration` instance for specified float_seconds
docstring_tokens: Create new Duration instance from float seconds format . : param float_seconds : time value in specified as float seconds float : returns : : class : Duration instance for specified float_seconds
function: def from_sec(float_seconds):
          """
          Create new Duration instance from float seconds format.
          
          :param float_seconds: time value in specified as float seconds, ``float``
          :returns: :class:`Duration` instance for specified float_seconds
          """
          secs = int(float_seconds)
          nsecs = int((float_seconds - secs) * 1000000000)
          return Duration(secs, nsecs)
function_tokens: def from_sec ( float_seconds ) : secs = int ( float_seconds ) nsecs = int ( ( float_seconds - secs ) * 1000000000 ) return Duration ( secs , nsecs )