Here you can find the source of getTimeFormat()
public static SimpleDateFormat getTimeFormat()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; public class Main { private static ThreadLocal<SimpleDateFormat> simpleTimeFormatThreadLocal = new ThreadLocal<SimpleDateFormat>() { @Override/* ww w. j ava 2s . c o m*/ protected SimpleDateFormat initialValue() { return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z"); } }; public static SimpleDateFormat getTimeFormat() { return simpleTimeFormatThreadLocal.get(); } }