public static long parseGMTToMillis(String gmtTime) throws ParseException {
  SimpleDateFormat formatter=new SimpleDateFormat(FORMAT_HTTP_DATA,Locale.US);
  formatter.setTimeZone(GMT_TIME_ZONE);
  Date date=formatter.parse(gmtTime);
  return date.getTime();
}

public static long parseGMTToMillis ( String gmtTime ) throws ParseException { SimpleDateFormat formatter = new SimpleDateFormat ( FORMAT_HTTP_DATA , Locale . US ) ; formatter . setTimeZone ( GMT_TIME_ZONE ) ; Date date = formatter . parse ( gmtTime ) ; return date . getTime ( ) ; }
parsing the timezone of time in milliseconds .
