bool = faBestDayFor(sFunctionName,nDate,nTimeTimesMillion,nMoonSourceIndex)
This macro function checks whether the client's configured "best day" rule for the activity named by sFunctionName is true. It uses the location of the current script's Moon data source of index nMoonSourceIndex, evaluated at nTimeTimesMillion on nDate, subject to the Moon-phase convention below. "Best day" refers to that client-specific Moon lore rule, rather than a general prediction of an activity's outcome.
➢IMPORTANT: Moon-phase calculations used by these rules are evaluated at the end of the day, regardless of the supplied nTimeTimesMillion. Changing this argument therefore does not change their Moon-phase reference time.
The time argument is expressed in millionths of a day. The example below uses the end-of-day convention for these Moon lore rules and one of the accepted activity identifiers.
sCurActivity = 'PlantAbovegroundCrops'
nAt2359 = MillionFromHMS(23,59,59) // end of the day
nIdxSrcMoon = 1
bIsGoodDay = faBestDayFor(sCurActivity, n_TokenDate, nAt2359, nIdxSrcMoon)
Use one of the following accepted activity identifiers for sFunctionName, with the spelling shown. Each identifier selects its corresponding client-specific rule; the calculation criteria are not specified in this topic.
Group |
Accepted activity identifiers |
General activities |
AdvertiseToSell |
General activities |
AskForLoan |
General activities |
Bake |
General activities |
Brew |
General activities |
BuyACar |
General activities |
BuyAHome |
General activities |
BuyClothes |
General activities |
CanFruitsVegetables |
General activities |
CastrateFarmAnimals |
General activities |
CutFirewood |
General activities |
CutHairToIncreaseGrowth |
General activities |
CutHairToSlowGrowth |
General activities |
Demolition |
General activities |
DigHoles |
General activities |
DigPostHoles |
General activities |
DryFruitsVegetables |
General activities |
EntertainFriends |
General activities |
GetMarried |
General activities |
Harvest |
General activities |
Hay |
General activities |
HostAParty |
General activities |
Hunt |
General activities |
JamsJellies |
General activities |
KillPlantPestsAndWeeds |
General activities |
MowToIncreaseGrowth |
General activities |
MowToSlowGrowth |
General activities |
Paint |
General activities |
PickApplesAndPears |
General activities |
PottyTrain |
General activities |
PruneTrees |
General activities |
QuitSmoking |
General activities |
Slaughter |
General activities |
StartDietToGainWeight |
General activities |
StartDietToLoseWeight |
General activities |
TravelForPleasure |
General activities |
WashWindows |
General activities |
WashWoodenFloors |
General activities |
WaxFloors |
General activities |
WeanHumansOrAnimals |
General activities |
Write |
Gardening |
Transplant |
Gardening |
PlantRootCrops |
Gardening |
PlantAbovegroundCrops |
Gardening |
PlantSeedbeds |
Gardening |
PlantFlowers |
Eggs |
SetEggs |
Eggs |
HatchEggs |
Pets |
BreedPets |
Pets |
TrainPets |
See also: MillionFromHMS and Moon Lore.
Topic 180090, last updated on 14-Oct-2026