Please enable JavaScript to view this site.

 

int = ZodiacSignAndTimeOf(nDate, nSunDataSourceIndex, bEveryday)

 

This macro function returns the index and time of the Zodiac sign into which the Sun enters on nDatenDate, for the Sun data source of index nSunDataSourceIndex.

 

The result is the time of the day expressed in one millionth of a day (less than 1/10th of a second).

 

The parameter bEveryday specifies if the function should give a result corresponding to the current Zodiac sign every day (bEveryday = true), or only on dates when there is a change of Zodiac sign (bEveryday = false).

 

The possible values returned by this function correspond to the table below.

 

0

No change of Zodiac sign on nDate

(only possible if bEveryday is false).

1

Aries


7

Libra

2

Taurus


8

Scorpio

3

Gemini


9

Sagittarius

4

Cancer


10

Capricorn

5

Leo


11

Aquarius

6

Virgo


12

Pisces

 

To separate the index and time, use the div and mod functions on the returned result, as shown in the code below.

nZodiacIndex = 0
nPhaseAndTime = ZodiacSignAndTimeOf(nRunDate,1,false)
// do we have a Zodiac change ?
if (nPhaseAndTime > 0)
   nZodiacIndex = nPhaseAndTime div 1000000
   nZodiacTime = nPhaseAndTime mod 1000000
endif

See also: ZodiacName, ZodiacSignOf and ZodiacSymbol.

 


Topic 177645, last updated on 18-Apr-2020