Time Functions Overview

Updated on

Explore Time Functions in Power Query M Language, vital for handling time values. This page provides a comprehensive list and descriptions of Time Functions available in the M Language.

Creation and Conversion Functions

FunctionDescription
#timeCreates a time value from numbers representing the hour, minute, and (fractional) second.
Time.FromCreates a time from the given value.
Time.FromTextCreates a Time from local and universal, and custom Time formats.
Time.ToRecordReturns a record containing the Time value’s parts.
Time.ToTextReturns a textual representation of the time value.

Start-End Functions

FunctionDescription
Time.EndOfHourReturns the end of the hour.
Time.StartOfHourReturns the start of the hour.

Time Component Functions

FunctionDescription
Time.HourReturns the hour component.
Time.MinuteReturns the minute component.
Time.SecondReturns the second component.

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/time-functions

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy