# hour()

### Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2Ft5AqRKnasHJ3GsOwwatD%2Fhour().gif?alt=media&#x26;token=afa35b48-731c-4d51-9049-049439cf32ad" alt=""><figcaption></figcaption></figure>

```python
text('Current Hour:',200,250)
text(hour(), width/2, height/2)
```

### Syntax

```
hour()
```

### Description

It returns the **current hour** of the day as an integer, ranging from **0 to 23**.

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
