Java Time Format getTimeFormat()

Here you can find the source of getTimeFormat()

Description

get Time Format

License

Apache License

Declaration

public static SimpleDateFormat getTimeFormat() 

Method Source Code

//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();
    }
}

Related

  1. getTimeByFormat(Date date, String format)
  2. getTimeCount(String from, String to, String format)
  3. getTimeCount(String from, String to, String format)
  4. getTimeFormat()
  5. getTimeFormat()
  6. getTimeFormat(Date date, String strFormat)
  7. getTimeFormat(java.util.Date date)
  8. getTimeFormat(Locale locale)
  9. getTimeFormat(String format)