Java Second Format getThisSecondTime()

Here you can find the source of getThisSecondTime()

Description

get This Second Time

License

Open Source License

Declaration

public static String getThisSecondTime() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * @(#)DateUtil.java Oct 23, 2007/*from   w  ww.j  a  va 2  s.  com*/
 *
 * Copyright 2007 Neusoft Group Ltd. All rights reserved.
 * Neusoft PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *******************************************************************************/

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {

    public static String getThisSecondTime() {

        Calendar calendar = Calendar.getInstance();
        Date currentTime = calendar.getTime();
        SimpleDateFormat formatter = new SimpleDateFormat("yyMMddHHmmss");
        return formatter.format(currentTime);

    }
}

Related

  1. getSecond(String time)
  2. getSeconds(long time)
  3. getSecondsFormatter()
  4. getSecondsSince(String rfc1123Date)
  5. getStringFromNanoSeconds(final long nanoSeconds, final long format)
  6. getTimeSecondInteger(Date date)
  7. getToSecond()
  8. humanDateToSeconds(String date)
  9. parseLongToString(long millsSeconds)