class Time
Public Class Methods
zow()
click to toggle source
# File lib/dohutil/core_ext/datewithtime.rb, line 34 def self.zow now.zowify end
Public Instance Methods
empty?()
click to toggle source
# File lib/dohutil/core_ext/empty.rb, line 20 def empty? return false end
inspect()
click to toggle source
# File lib/dohutil/core_ext/inspect.rb, line 20 def inspect "#<Time:#{strftime('%F %X %z')}>" end
next_second(n = 1)
click to toggle source
# File lib/dohutil/core_ext/datewithtime.rb, line 42 def next_second(n = 1) self + n end
prev_second(n = 1)
click to toggle source
# File lib/dohutil/core_ext/datewithtime.rb, line 46 def prev_second(n = 1) self - n end
to_display()
click to toggle source
# File lib/dohutil/to_display.rb, line 16 def to_display strftime('%m/%d/%Y %I:%M%P') end
zowify()
click to toggle source
# File lib/dohutil/core_ext/datewithtime.rb, line 38 def zowify self.class.new(year, month, mday, hour, min, sec, 0) end