SetTime: Difference between revisions
(Created page with "This function sets the world time. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} === Required Arg...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
This function sets the world time. | This function sets the world time. | ||
{{CSharpContainer| | |||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} | {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetTime(int hours, int minutes, int seconds);}} | ||
{{Parameters}} | {{Parameters}} | ||
*'''hours:''' parameter input should be in '''int''' type | *'''hours:''' parameter input should be in '''int''' type | ||
| Line 18: | Line 7: | ||
*'''seconds:''' parameter input should be in '''int''' type | *'''seconds:''' parameter input should be in '''int''' type | ||
{{Example}} | |||
Set time to 23:15. | Set time to 23:15. | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
{{Template:CSharp_Serverside_namespace}}World.SetTime(23, 15, 0); | {{Template:CSharp_Serverside_namespace}}World.SetTime(23, 15, 0); | ||
Latest revision as of 20:52, 27 November 2019
This function sets the world time.
C# Syntax
void NAPI.World.SetTime(int hours, int minutes, int seconds);
Parameters
- hours: parameter input should be in int type
- minutes: parameter input should be in int type
- seconds: parameter input should be in int type
Example
Set time to 23:15.
NAPI.World.SetTime(23, 15, 0);