APIdock / Ruby on Rails
/
Browse About
method

end_of_minute

v6.1.7.7 - Show latest stable - Class: DateTime
end_of_minute()
public

Returns a new DateTime representing the end of the minute (hh:mm:59).

# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 160
  def end_of_minute
    change(sec: 59, usec: Rational(999999999, 1000))
  end

Related methods

  • Instance methods
  • <=>
  • acts_like_date?
  • acts_like_time?
  • advance
  • ago
  • as_json
  • at_beginning_of_day
  • at_beginning_of_hour
  • at_beginning_of_minute
  • at_end_of_day
  • at_end_of_hour
  • at_end_of_minute
  • at_midday
  • at_middle_of_day
  • at_midnight
  • at_noon
  • beginning_of_day
  • beginning_of_hour
  • beginning_of_minute
  • blank?
  • change
  • default_inspect
  • end_of_day
  • end_of_hour
  • end_of_minute
  • formatted_offset
  • getgm
  • getlocal
  • getutc
  • gmtime
  • in
  • inspect
  • localtime
  • midday
  • middle_of_day
  • midnight
  • noon
  • nsec
  • readable_inspect
  • seconds_since_midnight
  • seconds_until_end_of_day
  • since
  • subsec
  • to_default_s
  • to_f
  • to_formatted_s
  • to_i
  • to_s
  • to_time
  • usec
  • utc
  • utc?
  • utc_offset
  • Class methods
  • civil_from_format
  • current
  • Private methods
  • privateoffset_in_seconds
  • privateseconds_since_unix_epoch
APIdock API Documentation Browser

© 2026 APIdock