Java SQL Time Field getSecond(Time time)

Here you can find the source of getSecond(Time time)

Description

get Second

License

Apache License

Declaration

public static int getSecond(Time time) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Time;

import java.time.LocalTime;

public class Main {
    public static int getSecond(Time time) {
        LocalTime localTime = time.toLocalTime();

        return localTime.getSecond();
    }/*from  w w w.ja va2s . c o  m*/
}

Related

  1. clearTimeFields(java.util.Date date)
  2. getDay(long time)
  3. getHoraFormatada(Time hora, String formato)
  4. getHour(String time)
  5. getHoursAndMinutes(String dateTime)