| Value | Description |
|---|---|
| epoch | The number of seconds since 1970-01-01 00:00:00-00. The value can be positive or negative. |
| millennium/millenniums | The millennium; for example, 2 for a date between 01 Jan 2000 and 31 Dec 2999. |
| century/centuries | The number of full 100-year periods represented by the year; for example, 20 for a date between 01 Jan 2000 and 31 Dec 2099. |
| decade/decades | The number of full 10-year periods represented by the year; for example, 201 for a date between 01 Jan 2010 and 31 Dec 2019. |
| year/years | The year; for example, 2015. |
| quarter | The quarter of the year (1 - 4) that the specified day is in. |
| month/months | The number of the month within the year (1 - 12). |
| week | The number of the week of the year (1 - 53) that the specified day is in. The value uses the ISO-8601 definition of a week, which begins on Monday; as a result, some years might have 53 weeks, and sometimes the first few days of January can be included as part of the 52nd or 53rd week of the previous year. |
| day/days | The day of the month (1 - 31). |
| dow | The day of the week, from 1 (Sunday) to 7 (Saturday). |
| doy | The day of the year (1 - 366). |
| hour/hours | The hour of the day (0 - 23). |
| minute/minutes | The minute of the hour (0 - 59). |
| second/seconds | The second of the minute, not including fractional parts (0 - 59). |
| millisecond/milliseconds | The second of the minute, including fractional parts to one thousandth of a second, multiplied by 1000 (0 - 59999). |
| microsecond/microseconds | The second of the minute, including fractional parts to one millionth of a second, multiplied by 1000000 (0 - 59999999). |
IBM® Netezza® SQL does not support timezone* values.
| Units | Temporal Data Type | |||||||
|---|---|---|---|---|---|---|---|---|
| Date | Time | Timezone | Timestamp | Interval | Time |
Date |
Timestamp |
|
| epoch | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| millennium/millenniums | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| century/centuries | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| decade/decades | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| year/years | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| quarter | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| month/months | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| week | ✓ | ✓ | ✓ | |||||
| day/days | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| doy | ✓ | ✓ | ✓ | |||||
| dow | ✓ | ✓ | ✓ | |||||
| hour/hours | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| minute/minutes | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| second/seconds | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| millisecond/milliseconds | ✓ | ✓ | ✓ | ✓ | ✓ | |||
| microsecond/microseconds | ✓ | ✓ | ✓ | ✓ | ✓ | |||