InternetTimeGetCurrentDateTime Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets the current date and time from the internet.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: (0.56.1131.11510)

public static DateTime GetCurrentDateTime()

Return Value

Type: DateTime
A DateTime representing the current time in UTC.

The time server can only be accessed once every five seconds. If less than five seconds have passed since the last call to GetCurrentDateTime(), the time will be inferred from the last time returned. Note, that this limit is enforced across plugins.
See Also