Time.StartOfHour

Syntax

Time.StartOfHour(dateTime as any) as any 

About

Returns the first value of the hour given a time, datetime or datetimezone type.

Example 1

Find the start of the hour for October 10th, 2011, 8:10:32AM (#datetime(2011, 10, 10, 8, 10, 32)).

Time.StartOfHour(#datetime(2011, 10, 10, 8, 10, 32))

#datetime(2011, 10, 10, 8, 0, 0)