def xml_time_to_integer(str)
      arr = str.gsub(/T|Z|:/,"-").split(/-/)
      year = arr[0]
      month = arr[1]
      day = arr[2]
      hour  = arr[3]
      min   = arr[4]
      sec   = arr[5]
      Time.utc(year,month,day,hour,min,sec).to_i
    end
def xml_time_to_integer(str)
      arr = str.gsub(/T|Z|:/,"-").split(/-/)
      year = arr[0]
      month = arr[1]
      day = arr[2]
      hour  = arr[3]
      min   = arr[4]
      sec   = arr[5]
      Time.utc(year,month,day,hour,min,sec).to_i
    end
To convert xml_time received from the server to integer.