diff options
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/date.rb b/lib/date.rb index 1cd4e08049..9d33198235 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -806,12 +806,15 @@ class Date # Get the minute of this date. def min() time[1] end + alias :minute :min # Get the second of this date. def sec() time[2] end + alias :second :sec # Get the fraction-of-a-second of this date. def sec_fraction() time[3] end + alias :second_fraction :sec_fraction private :hour, :min, :sec, :sec_fraction |