Class: Time

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#ymdObject



7
8
9
# File 'lib/ruby_patch/core_ext/time.rb', line 7

def ymd()
  self.strftime(YYMMDD)
end

#ymdhmsObject



11
12
13
# File 'lib/ruby_patch/core_ext/time.rb', line 11

def ymdhms()
  self.strftime(YYMMDDHHMMSS)
end