Java Second Format getTimeSecondInteger(Date date)

Here you can find the source of getTimeSecondInteger(Date date)

Description

get Time Second Integer

License

Open Source License

Declaration

public static Integer getTimeSecondInteger(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static Integer getTimeSecondInteger(Date date) {
        try {/* ww  w .  j  a va2s  . co m*/
            SimpleDateFormat formater = new SimpleDateFormat("HHmmss");
            return Integer.valueOf(formater.format(date));
        } catch (Exception e) {
            return null;
        }
    }
}

Related

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