# File lib/aws/xml_grammar.rb, line 217
      def datetime_like_value(klass, parts_constructor)
        format_value do |value|
          value = super(value)
          if value and value.tr(*TRANSLATE_DIGITS) == EASY_FORMAT

            # it's way faster to parse this specific format manually
            # vs. DateTime#parse, and this happens to be the format
            # that AWS uses almost (??) everywhere.

            parts = value.tr(*DATE_PUNCTUATION).
              chop.split.map { |elem| elem.to_i }
            klass.send(parts_constructor, *parts)
          elsif value
            # fallback in case we have to handle another date format
            klass.parse(value)
          else
            nil
          end
        end
      end