timestamp() function
The timestamp() function is used to define a timestamp constant with a
specific timestamp format.
The timestamp() function uses the following syntax: timestamp
(timestampStr, timestampFormat)
Parameters
- timestampStr
- The string representation of timestamp. For example,
2008/11/21 01:12:33. - timestampFormat
- The timestamp format string. For example,
yyyy/MM/dd HH:mm:ss.