Here you can find the source of parseGMTInMillis(String time)
public static long parseGMTInMillis(String time) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { private static DateFormat GMT_FORMAT_MILLIS = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); public static long parseGMTInMillis(String time) throws ParseException { synchronized (GMT_FORMAT_MILLIS) { return GMT_FORMAT_MILLIS.parse(time).getTime() * 1000000L; }/*from ww w. j a v a 2 s. co m*/ } }