Java SQL Time toDateFromTime(String time)

Here you can find the source of toDateFromTime(String time)

Description

to Date From Time

License

Open Source License

Declaration

public static Date toDateFromTime(String time) 

Method Source Code


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

public class Main {
    public static Date toDateFromTime(String time) {

        try {//w  w  w .j  a  va2  s . com
            return toDateFromTime(Long.parseLong(time));
        } catch (Exception iae) {
            return null;
        }
    }

    public static Date toDateFromTime(long time) {
        return new Date(time);
    }
}

Related

  1. sqlTime()
  2. str2dateTime(String handedate)
  3. StrToDateTime(String val)
  4. strToTime(String strDate)
  5. toDate(TimeZone tz, int days)
  6. todayBeginTime()
  7. toGMTTime(long local)
  8. toMySQLDate(LocalDateTime dateTime)
  9. toPOSIXTime(String timeString)