BUILT-IN WOLFRAM LANGUAGE SYMBOL

TimeDirection

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 2014
(10.0)