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:

Find the last sunrise:

Find the next sunset:

Find the last sunset:

Introduced in 2014
 (10.0)