code: def time_to_xml_hash(time)
        return {
            :hour => time.hour, :minute => time.min, :second => time.sec,
            :date => {:year => time.year, :month => time.month, :day => time.day}
        }
      end
docs: Converts Time to a hash for XML marshalling.