Please enable JavaScript to view this site.

 

bool = faBestDayFor(sFunctionName,nDate,nTimeTimesMillion,nMoonSourceIndex)

 

This macro function determines if the good day for function named sFunctionName is true or false, based on the location of the current script's Moon data source of index nMoonSourceIndex, evaluated at the time nTimeTimesMillion of nDate.

 

IMPORTANT: note that the default convention for the calculation of astronomical events is the end of the day (23:59:59.9999) and that using a value of nTimeTimesMillion different from that will not apply to any calculations related to the phase of the Moon (all these calculations are performed at the end of the day, regardless of the value of nTimeTimesMillion that is supplied to the present function).

 

The time of the day for the calculation is given by nTimeTimesMillion which is the portion of the day expressed in one millionth of a day (less than 1/10th of a second). Traditionally, astrological and astronomical events that are true or false on a date, are evaluated at the end of the day (ie. 23:59:59), which would be done as follows.

nAt2359 = MillionFromHMS(23,59,59// end of the day
nIdxSrcMoon = 1
bIsGoodDay = faBestDayFor(sCurActivity, n_TokenDate, nAt2359, nIdxSrcMoon)

The function name sFunctionName is specific to each client, as each client usually has its own rules for these Moon lore events.

 

See also: MillionFromHMS and Moon Lore.

 

 


Topic 180090, last updated on 04-Dec-2024