Class CFPropertyList::CFDate
In: rbCFTypes.rb
Parent: CFType

This class holds Time values. While Apple uses seconds since 2001, the rest of the world uses seconds since 1970. So if you access value directly, you get the Time class. If you access via get_value you either geht the timestamp or the Apple timestamp

Methods

Constants

TIMESTAMP_APPLE = 0
TIMESTAMP_UNIX = 1;
DATE_DIFF_APPLE_UNIX = 978307200

Public Class methods

create a XML date strimg from a time object

parse a XML date string

Public Instance methods

get timestamp, either UNIX or Apple timestamp

set value with timestamp, either Apple or UNIX

convert to binary

convert to XML

[Validate]