> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.time/su.time.getclockhours.md).

# SU.Time.GetClockHours

## SU.Time.GetClockHours(floatingPoint=0)

Gibt die Stundenanzahl **der Uhr** rechts oben zurück

⇒ siehe [SU.Time.GetTotalHours](/s4-lua-api-de/su-library-functions/su.time/su.time.gettotalhours.md)

#### Parameter

* `floatingPoint` (optional): 0 **abgerundete** Ganzzahl (z.B. 2 Stunden), 1 Gleitkommazahl (z.B. 2,345 Stunden)

#### Rückgabewert

* **Stunden**anzahl der Uhr (z.B. **1**:59:59 Spielzeit **liefert 1** \[oder 1.99 mit floatingPoint=1])
* -1: Fehler

#### Beispiel

```lua
local clockHoursFloatingPoint = SU.Time.GetClockHours(1)    -- 3.93
local clockHours = SU.Time.GetClockHours()    -- 3
```
