Java Time Format getTimeOnlyWithNumber()

Here you can find the source of getTimeOnlyWithNumber()

Description

get Time Only With Number

License

Open Source License

Declaration

public static String getTimeOnlyWithNumber() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getTimeOnlyWithNumber() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
        return formatter.format(new Date());

    }//  w  ww .  j a  v a  2 s. co m
}

Related

  1. getTimeFormatter()
  2. getTimeFromString(String time, SimpleDateFormat formatter)
  3. getTimeFromString(String timeStr, String format)
  4. getTimeInProvenanceFormat(Date date)
  5. getTimeOnlyDateFormat()
  6. getTimeQuantum(String strDate, String format)
  7. getTimeStringFormatedForSWANWithDelim( final Object pObjTime, final String pStrDelim)
  8. getTimeSystem(String formatTime)
  9. getTwoTimeInterval(String startTime, String endTime, String format)