Date/Time Functions - 17.1

Inline Quality and Discovery

Version
17.1
Language
English
Product name
Trillium Quality and Discovery
Title
Inline Quality and Discovery

The functions for the Date/Time category convert date and time into different formats.

Function Name Description
DATE_TO_SECONDS

Returns the specified date as seconds. This function parses and converts any standard date or time value. If you specify only the time, the function uses the current date as the default.

Note:

Function uses the date 1970-01-01 as anchor. Any date prior to 1970-01-01 will return a negative value.

DAYMONTHYEAR

Returns the specified date, given as day/month/year, in seconds.

MONTHDAYYEAR

Returns the specified date, given as month/day/year, in seconds.

NOW

Returns the current date and time as seconds.

SECONDS_IN

Calculates the number of seconds within a time period; for example, a specified number of days, weeks, and so on.

SECONDS_TO_DATE

Converts seconds back to the specified date/time format. Field descriptors start with a percentage sign (%) followed by a field descriptor character. All other characters are copied into the result.

TO_SECONDS

Returns the specified date and time as seconds. Field descriptors start with a percentage sign (%) followed by a field descriptor character.

YEARDAYMONTH

Returns the specified date, given as year/day/month, in seconds.

YEARMONTHDAY

Returns the specified date, given as year/month/day, in seconds.