({{, (RefLink[TimeDirection, paclet:ref/TimeDirection]) 
is an option for (RefLink[Sunrise, paclet:ref/Sunrise]), (RefLink[Sunset, paclet:ref/Sunset]), and related functions that specifies whether the next or last event should be returned.}})

OpenersNotesSection(Spacer1)Details

Typical settings for (RefLink[TimeDirection, paclet:ref/TimeDirection]) include:

The typical default setting for (RefLink[TimeDirection, paclet:ref/TimeDirection]) is 1.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Find the next sunrise:

Sunrise[TimeDirection->1]

Find the last sunrise:

Sunrise[TimeDirection->-1]

Find the next sunset:

Sunset[TimeDirection->1]

Find the last sunset:

Sunset[TimeDirection->-1]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Sunrise, paclet:ref/Sunrise])  ▪  (RefLink[Sunset, paclet:ref/Sunset])  ▪  (RefLink[SolarEclipse, paclet:ref/SolarEclipse])  ▪  (RefLink[LunarEclipse, paclet:ref/LunarEclipse])}})}})