class Mhc::PropertyValue::DateTime

Public Instance Methods

absolute_from_epoch() click to toggle source
# File lib/mhc/property_value/date_time.rb, line 11
def absolute_from_epoch
  return (self - Date.new(1970, 1, 1)).to_i
end
to_mhc_string() click to toggle source
# File lib/mhc/property_value/date_time.rb, line 7
def to_mhc_string
  return strftime("%Y%m%d/%H:%M")
end
Also aliased as: to_s
to_s()
Alias for: to_mhc_string