The function is used to get the day length in miliseconds.
Original: getDayLength
Declaration
async def getDayLength() -> float
Returns
float: the current day length in miliseconds.
Source code in src/pyg2o/functions/game.py
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144 | async def getDayLength() -> float:
"""
The function is used to get the day length in miliseconds.
Original: [getDayLength](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/game/getDayLength/)
## Declaration
```python
async def getDayLength() -> float
```
## Returns
`float`: the current day length in miliseconds.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|