method

sec_fraction

ruby latest stable - Class: DateTime

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

sec_fraction()
public

Returns the fractional part of the second.

DateTime.new(2001,2,3,4,5,6.5).sec_fraction       #=> (1/2)