class CF::Date
Wrapper for CFDateRef
Public Class Methods
from_time(time)
click to toggle source
Public Instance Methods
to_time()
click to toggle source
returns a ruby Time instance corresponding to the same point in time
@return [Time]
# File lib/corefoundation/date.rb, line 26 def to_time Time.at(CF.CFDateGetAbsoluteTime(self) + CF.kCFAbsoluteTimeIntervalSince1970) end
Also aliased as: to_ruby