---
title: "GetWorldTime | open.mp"
description: "زمان فعلی دنیا رو دریافت می‌کنه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetWorldTime
language: fa
---

# GetWorldTime

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

زمان فعلی دنیا رو دریافت می‌کنه.

## مثال‌ها

```c
SetWorldTime(12);

printf("Current world time: %d", GetWorldTime());
// The output will be 'Current world time: 12'
```

## توابع مرتبط

-   [SetWorldTime](https://omp.itsneufox.com/fa/docs/scripting/functions/SetWorldTime): تنظیم زمان دنیا (برای همه بازیکنان) روی یه ساعت خاص.
-   [SetPlayerTime](https://omp.itsneufox.com/fa/docs/scripting/functions/SetPlayerTime): تنظیم زمان یه بازیکن.
