Class: Time

Inherits:
Object show all
Defined in:
lib/platform_helpers/date_time.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to_md5Object



26
27
28
# File 'lib/platform_helpers/date_time.rb', line 26

def self.to_md5
  MD5.hexdigest("#{Time.now.tv_sec}")
end

Instance Method Details

#dateObject



22
23
24
# File 'lib/platform_helpers/date_time.rb', line 22

def date
  Date.parse("#{self.month}/#{self.day}/#{self.year}")
end