The function is used to get the path of the default world on the server.
Original: getTime
Declaration
async def getTime() -> tuple
Returns
tuple (day, hour, min): The current time in the game.
Source code in src/pyg2o/functions/game.py
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198 | async def getTime() -> tuple:
"""
The function is used to get the path of the default world on the server.
Original: [getTime](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/game/getTime/)
## Declaration
```python
async def getTime() -> tuple
```
## Returns
`tuple (day, hour, min)`: The current time in the game.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return (result['day'], result['hour'], result['min'])
|