Here you can find the source of timestampToCalendar(java.sql.Timestamp inTime)
Parameter | Description |
---|---|
inTime | Source timestamp which to be converted. |
public static java.util.Calendar timestampToCalendar(java.sql.Timestamp inTime)
//package com.java2s; /*//from w w w . j av a 2 s .c om * @(#)Utility.java * * Copyright (c) 2003 DCIVision Ltd * All rights reserved. * * This software is the confidential and proprietary information of DCIVision * Ltd ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the license * agreement you entered into with DCIVision Ltd. */ public class Main { /** * Returns Calendar converted from Timestamp. * * @param inTime Source timestamp which to be converted. * @return Calendar object which converted from input. */ public static java.util.Calendar timestampToCalendar(java.sql.Timestamp inTime) { if (inTime == null) { return (null); } java.util.Calendar cal = java.util.Calendar.getInstance(); cal.setTime(inTime); return (cal); } }