--- title: "hours()" slug: "date-hour" updated: 2026-08-13T08:39:50Z published: 2026-08-13T08:39:50Z canonical: "docs.lobstersoftware.com/date-hour" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # hours() This function returns the hour of date **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Date | ## Examples | Parameter a | Result | | --- | --- | | 2005-01-05 08:20:00 | 8 | | 2005-01-05 | 0 |