int = faFishingTimeBestOn(nDate,nTimeTimesMillion,nMoonSourceIndex)
This macro function calculates if fishing conditions are better in the morning of the evening, based on the location of the current script's Moon data source of index nMoonSourceIndex, evaluated at the time nTimeTimesMillion of nDate.
➢The result is 0 for the morning and 1 for the evening.
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).
The example below, calculated on the date of the macro token, specifies the best time of the day to fish, on days when fishing conditions are poor (ie. the least poor time to fish).
nAt2359 = MillionFromHMS(23,59,59) // end of the day
nIndexToday = faFishingConditionOn(n_TokenDate,nAt2359,nIdxMoon)
if nIndexToday == 0 // poor fishing conditions
nTimeOfDayIndex = faFishingTimeBestOn(n_TokenDate,nAt2359,nIdxMoon)
if nTimeOfDayIndex == 0 // best, relatively, in the morning
sResult = 'Poor, but relatively better in the morning'
else
sResult = 'Poor, but relatively better in the evening'
endif
endif
See also: MillionFromHMS, faFishingConditionOn and Moon Lore.
Topic 180100, last updated on 18-Apr-2020