class Time
Public Class Methods
new(year = Time.now.year, month = Time.now.month, day = Time.now.day, hour = Time.now.hour, min = Time.now.min, sec = Time.now.sec, millisecond = (Time.now.to_f * 1000.0).to_i)
click to toggle source
# File lib/week_of_month.rb, line 74 def self.new(year = Time.now.year, month = Time.now.month, day = Time.now.day, hour = Time.now.hour, min = Time.now.min, sec = Time.now.sec, millisecond = (Time.now.to_f * 1000.0).to_i) Time.local(year, month, day, hour, min, sec, millisecond) end
Public Instance Methods
leap?()
click to toggle source
# File lib/week_of_month.rb, line 69 def leap? to_date.leap? end