Java Date UTC Format getUTCFormat()

Here you can find the source of getUTCFormat()

Description

Returns instance of a SimpleDateFormat where the format has been set to yyyy-DDDThh:mm:ss.SSS, GMT

License

Open Source License

Return

a SimpleDateFormat object reference

Declaration

private static SimpleDateFormat getUTCFormat() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    /**//w  w  w .ja  v  a  2  s. co  m
     * Returns instance of a SimpleDateFormat where the format has been set to
     * yyyy-DDDThh:mm:ss.SSS, GMT
     *
     * @return a SimpleDateFormat object reference
     */
    private static SimpleDateFormat getUTCFormat() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy'-'DDD'T'HH:mm:ss.SSS");
        format.setLenient(false);
        return format;
    }
}

Related

  1. formatUTC(Date date, String format)
  2. formatUtcDateIfNotNull(final Date date)
  3. formatUtcTime(long tval)
  4. getStrTimeByUTC(long utc, String format)
  5. getUTCDateFormat()
  6. parseCcsdsUtcFormat(String timeString)
  7. toUTCDateFormat(Date date)
  8. UTCToLocalTime(String UTCFormat, Logger logger)