逻辑应用程序 - 当前时间 - 如何仅 select 时间 (hh:mm:ss)

Logic App - CurrentTime - how to select time only (hh:mm:ss)

在逻辑应用程序中使用 CurrentTime 时,它​​会给出完整的 date/time 值,例如 2020-06-14T20:16:49.0131751Z

我怎么才能select时间只点赞20:16:49?

原因:我想在某个条件下使用CurrentTime在一定时间内做动作windows。

例如:如果当前时间大于 08:00:00 小于 23:00:00 --> 执行操作。

你可以直接使用逻辑应用程序中的formatDateTime()功能来格式化你的CurrentTime,请参考下面我的逻辑应用程序:

第一个表达式(utcNow)是:

utcNow()

第二个表达式(formatDateTime)是:

formatDateTime(variables('CurrentTime'), 'HH:mm:ss')

希望对你有帮助~

拨打提供时间的 api。例如:http://worldclockapi.com/