Module: TimeOptions

Included in:
DateTime, Time
Defined in:
lib/overload/time.rb

Instance Method Summary collapse

Instance Method Details

#longObject



6
7
8
# File 'lib/overload/time.rb', line 6

def long
  strftime("%Y-%m-%d %H:%M")
end

#shortObject



2
3
4
# File 'lib/overload/time.rb', line 2

def short
  strftime("%Y-%m-%d")
end