Android Calendar Get getSecond(Calendar c)

Here you can find the source of getSecond(Calendar c)

Description

get Second

Declaration

public static int getSecond(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getSecond(Calendar c) {
        if (c != null) {
            return c.get(Calendar.SECOND);
        } else {//from w  ww  .  j av a  2 s.  com
            return Calendar.getInstance().get(Calendar.SECOND);
        }
    }
}

Related

  1. getMinTimeMillisWeek()
  2. getMinute()
  3. getMinute(Calendar c)
  4. getMonth()
  5. getMonth(Calendar c)
  6. getTimeByStr(String str)
  7. getTimeMillis()
  8. getWeek(final Calendar calendar)
  9. getWeek(final Long date)