Java Timestamp Create getTimestampFormatter()

Here you can find the source of getTimestampFormatter()

Description

Returns a formatter capable of producing and parsing timestamps.

License

Mozilla Public License

Return

Formatter for timestamps.

Declaration

private static SimpleDateFormat getTimestampFormatter() 

Method Source Code

//package com.java2s;
/**/* w  w w .  j  av a 2 s  .c o  m*/
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with this file, You can obtain one at
 * http://mozilla.org/MPL/2.0/.
 * 
 * This Source Code Form is also subject to the terms of the Health-Related Additional
 * Disclaimer of Warranty and Limitation of Liability available at
 * http://www.carewebframework.org/licensing/disclaimer.
 */

import java.text.SimpleDateFormat;

public class Main {
    /**
     * Returns a formatter capable of producing and parsing timestamps.
     * 
     * @return Formatter for timestamps.
     */
    private static SimpleDateFormat getTimestampFormatter() {
        return new SimpleDateFormat("yyyyMMddHHmmssz");
    }
}

Related

  1. getTimestampedPNGFile(File saveDir)
  2. getTimestampedVideoFileName()
  3. getTimestampFormat()
  4. getTimestampFormat()
  5. getTimestampFormat()
  6. getTimestampFromDate(Date d)
  7. getTimestampFromDate(String d)
  8. getTimestampFromDateTime(DateTime dateTime)
  9. getTimeStampFromISOString(String isoString)