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
demandé il y a 2 ans277 vues
1 réponse
1
Réponse acceptée

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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions