Time functions

Time functions functions for Power Query M language.

Functions

FunctionDescription
#timeGenerates a time value based on numerical inputs for the hour, minute, and (partial) second. An error will be triggered if the following conditions are not met: - The hour must be between 0 and 24. - ...
Time.EndOfHourThis function retrieves the precise end of the hour from the dateTime input, including any fractional seconds. The time zone data associated with the input dateTime is maintained. Input: The input sh...
Time.FromThis function retrieves a time value from the input provided. There is an option to specify a culture (e.g., "en-US"). If the input is empty, the function returns null. If the input is already a time ...
Time.FromTextThis function generates a time value based on a given textual representation. Additionally, an optional record parameter called "options" can be included to specify extra properties. The "options" rec...
Time.HourThis function retrieves the hour part of the input time value, which can be a date, time, or time zone value.
Time.MinuteThis function retrieves the minute portion of the given time, datetime, or datetimezone value, dateTime.
Time.SecondThis function retrieves the second value from the specified time, datetime, or datetimezone data type, referred to as dateTime.
Time.StartOfHourThe function returns the beginning of the hour indicated by the dateTime input. The input dateTime must be in the form of a time, datetime, or datetimezone value.
Time.ToRecordThis function retrieves a data set that includes the components of a specified Time value. The input parameter, time.time, represents the specific time value for which the data set is to be generated.
Time.ToTextThis function returns a text representation of time. An optional record parameter, options, can be provided to specify additional properties. The culture parameter is only utilized for legacy workflow...