Home » hsqldb_1_8_0_10 » org.hsqldb.lib » [javadoc | source]
org.hsqldb.lib
public class: HsqlDateTime [javadoc | source]
java.lang.Object
   org.hsqldb.lib.HsqlDateTime
collection of static methods to convert Date, Time and Timestamp strings into corresponding Java objects. Also accepts SQL literals such as NOW, TODAY as valid strings and returns the current date / time / datetime. Compatible with jdk 1.1.x
Method from org.hsqldb.lib.HsqlDateTime Summary:
dateValue,   getDate,   getDateString,   getTime,   getTimeString,   getTimestamp,   getTimestampString,   timeValue,   timestampValue,   timestampValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hsqldb.lib.HsqlDateTime Detail:
 public static Date dateValue(String s) 
    Converts a string in JDBC date escape format to a Date value. Also accepts Timestamp values.
 public static Date getDate(String dateString,
    Calendar cal) throws SQLException 
 public static String getDateString(Date x,
    Calendar cal) throws SQLException 
 public static Time getTime(String timeString,
    Calendar cal) throws SQLException 
 public static String getTimeString(Time x,
    Calendar cal) throws SQLException 
 public static Timestamp getTimestamp(String dateString,
    Calendar cal) throws SQLException 
 public static String getTimestampString(Timestamp x,
    Calendar cal) throws SQLException 
 public static Time timeValue(String s) 
    Converts a string in JDBC date escape format to a Time value.
 public static Timestamp timestampValue(String s) 
    Converts a string in JDBC timestamp escape format to a Timestamp value.
 public static Timestamp timestampValue(long time,
    int nano)