[TD_SYSFNLIB.] TD_TIME_BUCKET_NUMBER ( timezero, timecode, timebucket_duration )
Syntax Elements
- TD_SYSFNLIB
- The name of the database where the function is located.
- timezero
-
Any expression evaluating to a DATE or TIMESTAMP that is used as time zero for this function. A time zone for the timestamp is optional.
- timecode
- Any expression evaluating to a DATE or TIMESTAMP that is used as the timecode for this function. A time zone for the timestamp is optional.
- timebucket_duration
-
{ CAL_YEARS | CAL_MONTHS | CAL_DAYS | WEEKS | DAYS | HOURS | MINUTES | SECONDS | MILLISECONDS | MICROSECONDS } ( pos_int )
- pos_int
- A 16-bit positive integer with a maximum value of 32,767.