# File rice/datetime.rb, line 27
    def DateTime.parseICEDateTime(str)
	str =~ /^(\\)-(\)-(\)(T(\):(\):(\)(,(\+))?)?$/

	# Handle hour 24 (midnight of the next day)
	hour = $5.to_i
	addDay = false
	if hour == 24
	    hour = 0
	    addDay = true
	end

	# We must be able to handle 60, 61, or 62 seconds (leap seconds).
	sec = $7.to_i
	addMinute = false
	if sec >= 60
	    sec -= 60
	    addMinute = true
	end

	t = Time.gm($1.to_i, $2.to_i, $3.to_i,	# year, month, day
		    hour, $6.to_i, sec,		# hour, min, sec
		    $9 ? $9.to_i : 0)		# usecs
	return t + ((addMinute ? 60 : 0) + (addDay ? SECS_PER_DAY : 0))
    end