MAKE_TIMESTAMP

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Creates a timestamp from year, month, day, hour, minute, and seconds fields.

Syntax 

1make_timestamp(<year> int, <month> int, <day> int, <hour> int, <min> int, <sec> double precision)

Arguments 

Required 

  • <year>: The year.
  • <month>: The month.
  • <day>: The day of the month.
  • <hour>: The hour.
  • <min>: The minute.
  • <sec>: The seconds, including fractional seconds.

Returns 

Returns a timestamp value.

Examples 

Create a Timestamp 

Assemble a timestamp from its parts.

1SELECT make_timestamp(2013, 7, 15, 8, 15, 23.5) AS result;

Returns 2013-07-15 08:15:23.5.

Related Documentation 

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!