如何在 Google Data Studio 中获取分钟和秒数?

How to get minutes and seconds in Google Data Studio?

有谁知道如何在 Data Studio 中将时间戳数据转换为分钟和秒?

在下面的屏幕截图中,您可以看到我们在 Data Studio 中可能拥有的数据类型,其中不涉及任何秒和分钟。

Data Studio 提供了许多可在计算字段公式中使用的强大函数。参见 list of functions.

在你获得分钟数的情况下:

MINUTE(create_time, 'MILLIS')

此函数 returns UTC 时区 create_time 的分钟数。

获得秒数:

SECOND(create_time, 'MILLIS')

此函数 returns UTC 时区 create_time 的秒数。

要获得会议记录,您也可以使用 TODATE function

TODATE(create_time, 'MILLIS', '%M')

TODATE 函数根据指定格式格式化日期时间字段。

More information on each function, including examples, is available in the formula editor. This help will appear as you begin to type your formula.

不要忘记点击上面的两个链接以获得更多解释。