get Minute from java.sql.Time - Java java.sql

Java examples for java.sql:Time

Description

get Minute from java.sql.Time

Demo Code


//package com.java2s;
import java.sql.Time;

import java.time.LocalTime;

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

        return localTime.getMinute();
    }/*from  w  w  w  .  ja v a 2s .co  m*/
}

Related Tutorials