lib/rtf/information.rb
def created=(setting)
         if setting.instance_of?(Time)
            @created = setting
         else
           datetime = Date._parse(setting.to_s).values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
            if datetime == nil
               RTFError.fire("Invalid document creation date/time information "\
                             "specified.")
            end
            @created = Time.local(datetime[0], datetime[1], datetime[2],
                                  datetime[3], datetime[4], datetime[5])
         end
      end
def created=(setting)
         if setting.instance_of?(Time)
            @created = setting
         else
           datetime = Date._parse(setting.to_s).values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
            if datetime == nil
               RTFError.fire("Invalid document creation date/time information "\
                             "specified.")
            end
            @created = Time.local(datetime[0], datetime[1], datetime[2],
                                  datetime[3], datetime[4], datetime[5])
         end
      end
This is the constructor for the Information class.

 ==== Parameters
 title::     A string containing the document title information. Defaults
             to nil.
 author::    A string containing the document author information.
             Defaults to nil.
 company::   A string containing the company name information. Defaults
             to nil.
 comments::  A string containing the information comments. Defaults to
             nil to indicate no comments.
 creation::  A Time object or a String that can be parsed into a Time
             object (using ParseDate) indicating the document creation
             date and time. Defaults to nil to indicate the current
             date and time.

 ==== Exceptions
 RTFError::  Generated whenever invalid creation date/time details are
             specified.
 This method provides the created attribute mutator for the Information
 class.

 ==== Parameters
 setting::  The new creation date/time setting for the object. This
            should be either a Time object or a string containing
            date/time details that can be parsed into a Time object
            (using the parsedate method).

 ==== Exceptions
 RTFError::  Generated whenever invalid creation date/time details are
             specified.