Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.50

Description

Description:Returns the time the sun sets on the specified date, at the current world location.

Syntax

Syntax:getSunSet date
Parameters:
  • date: Array - [year, month, day, hour, minute] - Hour and minute are optional, and are not interpreted.
Return Value:Array - Time of sunset [year, month, day, hour, minute].

Examples

Examples:
_bedTime = getSunSet [2010,12,31]

Additional Information

See also: getSunRise, daytime
Multiplayer:
Problems:

Notes







Posted on Oct 03, 2011
Kronzky
Times returned by getSunSet are normally an hour earlier than when the sun actually crosses the horizon (V1.50)