'Custom date format in KQL

I would like to know if there is a possibility to customize the format of a specific datetime in KQL.

For example I have the following code:

let value = format_datetime(datetime(07:30:00), "HH:mm");
print value

As a result we obtain 07:30

My question here is that instead of having 07:30, is there a possibility to format it in a way to have a value = 7hr 30m



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source