Class: Time

Inherits:
Object show all
Defined in:
lib/ruby_patch/time.rb

Constant Summary collapse

YYMMDD =
'%y%m%d'
YYMMDDHHMMSS =
'%y%m%d' + '%H%M%S'

Instance Method Summary collapse

Instance Method Details

#ymdObject



5
6
7
# File 'lib/ruby_patch/time.rb', line 5

def ymd()
  self.strftime(YYMMDD)
end

#ymdhmsObject



9
10
11
# File 'lib/ruby_patch/time.rb', line 9

def ymdhms()
  self.strftime(YYMMDDHHMMSS)
end