LocalTime to java.sql.Time - Java java.sql

Java examples for java.sql:Time

Description

LocalTime to java.sql.Time

Demo Code


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

import java.time.LocalTime;

public class Main {
    public static Time toTime(LocalTime localTime) {
        return Time.valueOf(localTime);
    }// w  ww  .  j  a  v a2s.c o m
}

Related Tutorials