Timestream DAYNAME alternative to limit aggregation to weekdays

0

I am looking for an option to have aggregation over timeseries to be performed only for weekdays, like Monday, Tuesday and etc. I tried DAYNAME function but it doesn't seem to exist. Is there an alternative to that function or any other way to achieve what I am after?

Would be also interesting to find out how to get aggregation limited from 06:00 to 16:00 every day for example, but this might be a separate question.

hRed
已提問 2 年前檢視次數 276 次
1 個回答
1
已接受的答案

The function day_of_week(<timestamp>) or the alias dow(<timestamp>) return the day of the week. These functions return an integer, the value ranges from 1 (Monday) to 7 (Sunday).

The function hour(<timestamp>) returns the hour of the day, the value ranges from 0 to 23.

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南