

Returns a datetime value, truncated to the unit specified by format-string. Returns a TIMESTAMP that is converted from Coordinated Universal Time to the timezone specified by the timezone string. Returns a timestamp that is based on the interpretation of the input string using the specified format.

Returns a national character representation of an input expression that has been formatted using a character template. Returns a timestamp from a character string. Returns a CHARACTER representation of a timestamp. The second argument is the result of subtracting two timestamp types and converting the result to CHAR. Returns an estimated number of intervals of type argument1, based on the difference between two timestamps. If the argument is a time, it inserts the value of CURRENT DATE for the date elements, and zero for the fractional time element. If the argument is a date, it inserts zero for all the time elements. Returns a timestamp value based on a date, time, or timestamp argument. Returns a timestamp from a character string (argument1) that has been interpreted using a format template (argument2). Returns the first day of the year in the specified date. Returns the first day of the week in the specified date. Returns the first day of the quarter in the specified date. Returns the first day of the month in the specified date.
#Db2 timestamp timeslice full#
Returns the number of full seconds between the specified arguments. Returns a timestamp that is the expression rounded to the unit specified by the format-string. Returns a datetime value, rounded to the unit specified by format-string. Returns an integer that represents the quarter of the year in which a date resides. Returns a timestamp based on when the SQL statement is executed at the current server. Returns the first day of the next year after the specified date. Returns the first day of the next week after the specified date. Returns the first day of the next quarter after the specified date. Returns the first day of the next month after the specified date. Returns a datetime value that represents the first weekday, named by string-expression, that is later than the date inexpression. Returns an estimate of the number of months between expression1 and expression2. Returns a character string containing the name of the month (for example, January) for the month portion of expression, based on locale-name or the value of the special register CURRENT LOCALE LC_TIME. Returns the number of full minutes between the specified arguments. Returns an integer value representing the number of seconds between midnight and a specified time value. Returns a datetime value that represents the last day of the month of the argument. Returns an integer value representing the number of days from JanuB.C. Returns the number of full hours between the specified arguments. Returns a TIMESTAMP that is converted from Coordinated Universal Time to the timezone that is specified by the timezone string. Returns a date or timestamp that represents the first day of the month of the argument. Returns a portion of a date or timestamp based on the arguments. Returns the number of days to the end of the month. Returns the number of full days between the specified arguments. Returns an integer representation of a date. Returns the day of the year from a value. Returns the day of the week from a value, where 1 is Monday and 7 is Sunday. The integer value is in the range 1-7, where 1 represents the first day of the week, as specified in the second argument. Returns the day of the week in the first argument as an integer value. Returns an integer between 1 and 31 that represents the day of the month. Returns a character string containing the name of the day (for example, Friday) for the day portion of expression, based on locale-name or the value of the special register CURRENT LOCALE LC_TIME. Returns a timestamp expression rounded to the specified unit. Returns portion of a datetime based on its argument. Returns a numeric value that specifies the number of full years, full months, and full days between the current timestamp and the argument.
#Db2 timestamp timeslice plus#
Returns a datetime value that represents the first argument plus a specified number of years. Returns a timestamp value that represents the first argument plus a specified number of seconds and fractional seconds. Returns a datetime value that represents expression plus a specified number of months. Returns a timestamp value that represents the first argument plus a specified number of minutes. Returns a timestamp value that represents the first argument plus a specified number of hours. Returns a datetime value that represents the first argument plus a specified number of days. This section introduces you to some common Db2 date functions that help you manipulate date and time data effectively.
