TimeDirection

TimeDirection

is an option for Sunrise, Sunset, and related functions that specifies whether the next or last event should be returned.

Details

  • Typical settings for TimeDirection include:
  • 1returns the next event from the specified date
    -1returns the last event from the specified date
  • The typical default setting for TimeDirection is 1.

Examples

Basic Examples  (1)

Find the next sunrise:

In[1]:=
Click for copyable input
Out[1]=

Find the last sunrise:

In[2]:=
Click for copyable input
Out[2]=

Find the next sunset:

In[3]:=
Click for copyable input
Out[3]=

Find the last sunset:

In[4]:=
Click for copyable input
Out[4]=

See Also

Sunrise  Sunset  SolarEclipse  LunarEclipse

Introduced in 2014
(10.0)