Use the global “Day” variable. It contains the current "day of the month" – so on "17, last seed" it is 17. This can be used to keep track of the number of days passed:
Short localdaysPassed
Short currentDay
if ( currentDay != Day ) ;whenever Day changes (presumably increasing)…
set currentDay to Day
set localdaysPassed to localdaysPassed + 1 ;add one to the counter
endif
This would usually be used for time-limited quests in a global script, to make sure the passage of time is correctly measured. Innovative scripting might also make use of it to trigger events after an item has been in the player’s possession for some time, etc.
DaysPassed (is short global variable)
Contains the number of days since the game started. In order to work, DaysPassed has to be declared as a global short variable. This declaration is present in Tribunal.esm, but not in Bloodmoon.esm. Thus, in mods that make use of it, and that do not depend on Tribunal.esm, DaysPassed MUST be declared explicitly. This may be one of the reasons that some people reported it to be broken with Bloodmoon, but for others it worked fine - it depends on whether they had Tribunal.esm checked or not (Forum info / Erstam).