Java Date to Second getSecond(java.util.Date date)

Here you can find the source of getSecond(java.util.Date date)

Description

get Second

License

Open Source License

Declaration

public static int getSecond(java.util.Date date) 

Method Source Code

//package com.java2s;

public class Main {

    public static int getSecond(java.util.Date date) {
        java.util.Calendar c = java.util.Calendar.getInstance();

        c.setTime(date);/*from  ww w . ja  va2s .  c o  m*/

        return c.get(java.util.Calendar.SECOND);

    }
}

Related

  1. getSecond(Date d)
  2. getSecond(Date date)
  3. getSecond(Date date)
  4. getSecond(Date date)
  5. getSecondOfDate(Date date)
  6. getSecondOfMinute(final Date date)
  7. getSeconds(Date d)
  8. getSeconds(Date dt)