We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ae5d4d + 89060b8 commit 742d1f2Copy full SHA for 742d1f2
activesupport/lib/active_support/core_ext/date_time/calculations.rb
@@ -10,16 +10,6 @@ def current
10
end
11
12
13
- # Tells whether the DateTime object's datetime lies in the past.
14
- def past?
15
- self < ::DateTime.current
16
- end
17
-
18
- # Tells whether the DateTime object's datetime lies in the future.
19
- def future?
20
- self > ::DateTime.current
21
22
23
# Seconds since midnight: DateTime.now.seconds_since_midnight.
24
def seconds_since_midnight
25
sec + (min * 60) + (hour * 3600)
0 commit comments