Method: CFPropertyList::CFDate#get_value

Defined in:
lib/rbCFTypes.rb

#get_value(format = CFDate::TIMESTAMP_UNIX) ⇒ Object

get timestamp, either UNIX or Apple timestamp



128
129
130
131
132
133
134
# File 'lib/rbCFTypes.rb', line 128

def get_value(format=CFDate::TIMESTAMP_UNIX)
  if(format == CFDate::TIMESTAMP_UNIX) then
    @value.to_i
  else
    @value.to_f - CFDate::DATE_DIFF_APPLE_UNIX
  end
end