| org.apache.derby.iapi.types.DateTimeDataValue
All known Subclasses: org.apache.derby.iapi.types.SQLDate, org.apache.derby.iapi.types.SQLTime, org.apache.derby.iapi.types.SQLTimestamp,
DAY_FIELD | final public static int DAY_FIELD(Code) | | |
DAY_INTERVAL | final public static int DAY_INTERVAL(Code) | | |
FRAC_SECOND_INTERVAL | final public static int FRAC_SECOND_INTERVAL(Code) | | |
HOUR_FIELD | final public static int HOUR_FIELD(Code) | | |
HOUR_INTERVAL | final public static int HOUR_INTERVAL(Code) | | |
MINUTE_FIELD | final public static int MINUTE_FIELD(Code) | | |
MINUTE_INTERVAL | final public static int MINUTE_INTERVAL(Code) | | |
MONTH_FIELD | final public static int MONTH_FIELD(Code) | | |
MONTH_INTERVAL | final public static int MONTH_INTERVAL(Code) | | |
QUARTER_INTERVAL | final public static int QUARTER_INTERVAL(Code) | | |
SECOND_FIELD | final public static int SECOND_FIELD(Code) | | |
SECOND_INTERVAL | final public static int SECOND_INTERVAL(Code) | | |
WEEK_INTERVAL | final public static int WEEK_INTERVAL(Code) | | |
YEAR_FIELD | final public static int YEAR_FIELD(Code) | | |
YEAR_INTERVAL | final public static int YEAR_INTERVAL(Code) | | |
timestampAdd | DateTimeDataValue timestampAdd(int intervalType, NumberDataValue intervalCount, java.sql.Date currentDate, DateTimeDataValue resultHolder) throws StandardException(Code) | | Add a number of intervals to a datetime value. Implements the JDBC escape TIMESTAMPADD function.
Parameters: intervalType - One of FRAC_SECOND_INTERVAL, SECOND_INTERVAL, MINUTE_INTERVAL, HOUR_INTERVAL,DAY_INTERVAL, WEEK_INTERVAL, MONTH_INTERVAL, QUARTER_INTERVAL, or YEAR_INTERVAL Parameters: intervalCount - The number of intervals to add Parameters: currentDate - Used to convert time to timestamp Parameters: resultHolder - If non-null a DateTimeDataValue that can be used to hold the result. If null thengenerate a new holder startTime + intervalCount intervals, as a timestamp exception: StandardException - |
timestampDiff | NumberDataValue timestampDiff(int intervalType, DateTimeDataValue time1, java.sql.Date currentDate, NumberDataValue resultHolder) throws StandardException(Code) | | Finds the difference between two datetime values as a number of intervals. Implements the JDBC
TIMESTAMPDIFF escape function.
Parameters: intervalType - One of FRAC_SECOND_INTERVAL, SECOND_INTERVAL, MINUTE_INTERVAL, HOUR_INTERVAL,DAY_INTERVAL, WEEK_INTERVAL, MONTH_INTERVAL, QUARTER_INTERVAL, or YEAR_INTERVAL Parameters: time1 - Parameters: currentDate - Used to convert time to timestamp Parameters: resultHolder - If non-null a DateTimeDataValue that can be used to hold the result. If null thengenerate a new holder the number of intervals by which this datetime is greater than time1 exception: StandardException - |
|
|