The hour function returns the hour value of time.
The datetime or time attribute from which we want to retrieve the time. The time parameter is mandatory.
The following example uses the Instagram_data dataset.
In this example, we want to create a new attribute with the hour the posts were created, which is now contained in the Date Posted attribute.
We create a new attribute, called hour function, and write the following formula:
and the attribute will be filled with the hour only.