hourofday()
Returns the integer number representing the hour number of the given date.
Syntax
hourofday(
date)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
date | datetime |
✔️ | The date for which to return the hour number. |
Returns
An integer between 0-23 representing the hour number of the day for date.
Example
print hour=hourofday(datetime(2015-12-14 18:54))
hour |
---|
18 |
Palaute
https://aka.ms/ContentUserFeedback.
Tulossa pian: Vuoden 2024 aikana poistamme asteittain GitHub Issuesin käytöstä sisällön palautemekanismina ja korvaamme sen uudella palautejärjestelmällä. Lisätietoja on täällä:Lähetä ja näytä palaute kohteelle