Following are the zulu based time format
HH:mm:ss.SSS'Z'
HH:mm:ss'Z'
HH:mm:ss
..
...
// we can pass the pattern whatever we want
String format = "HH:mm:ss.SSS'Z'";
SimpleDateFormat zuluFmt = new SimpleDateFormat(format);
zuluFmt.setTimeZone(TimeZone.getTimeZone("UTC"));
System.out.println(" checkind time" + zuluFmt.parse("14:45:50.234Z"));
....
No comments:
Post a Comment