Power Query
published
Search
⌃K

Time.EndOfHour

Time.EndOfHour

Returns the last value of the hour.
function (optional dateTime as nullable any) as nullable any

Description

Returns a time, datetime, or datetimezone value representing the end of the hour in dateTime, including fractional seconds. Time zone information is preserved.

Category

Date

Examples

Get the end of the hour for 5/14/2011 05:00:00 PM.
Time.EndOfHour(#datetime(2011, 5, 14, 17, 0, 0))

datetime(2011, 5, 14, 17, 59, 59.9999999)

Get the end of the hour for 5/17/2011 05:00:00 PM -7:00.
Time.EndOfHour(#datetimezone(2011, 5, 17, 5, 0, 0, -7, 0))

datetimezone(2011, 5, 17, 5, 59, 59.9999999, -7, 0)