Flowdock
method

seconds_until_end_of_day

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: DateTime
seconds_until_end_of_day() public

Returns the number of seconds until 23:59:59.

DateTime.new(2012, 8, 29,  0,  0,  0).seconds_until_end_of_day # => 86399
DateTime.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103
DateTime.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0
Show source
Register or log in to add new notes.