Method: DateTime#subsec
- Defined in:
- lib/active_support/core_ext/date_time/calculations.rb
#subsec ⇒ Object
Returns the fraction of a second as a Rational
DateTime.new(2012, 8, 29, 0, 0, 0.5).subsec # => (1/2)
36 37 38 |
# File 'lib/active_support/core_ext/date_time/calculations.rb', line 36 def subsec sec_fraction end |