# File lib/aws/record/attributes/datetime.rb, line 41
      def self.type_cast raw_value, options = {}
        case raw_value
        when nil      then nil
        when ''       then nil
        when DateTime then raw_value
        when Integer  then 
          begin
            DateTime.parse(Time.at(raw_value).to_s) # timestamp
          rescue
            nil
          end
        else 
          begin
            DateTime.parse(raw_value.to_s) # Time, Date or String
          rescue
            nil
          end
        end
      end