- private static class Iso8601Util {
-
- private static TimeZone timeZone = TimeZone.getTimeZone("UTC");
- private static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
-
- private Iso8601Util() {}
-
- static {
- dateFormat.setTimeZone(timeZone);
- }
-
- private static String now() {
- return dateFormat.format(new Date());
- }
- }
-