Skip to main content
Version: 2.0.x

Interface: DateChangeResponse

SimpleCalendar.Hooks.DateChangeResponse

The structure of the object passed when the Simple Calendar module emits a SimpleCalendar.Hooks.DateTimeChange hook

Properties

date

date: DateData

This contains all information about the current date.


day

day: Day

deprecated Please use the DateChangeResponse.date property. This will be removed when Foundry v10 stable is released.


diff

diff: number

This contains the difference in seconds from the previous date and time to this new date and time.


month

month: Month

deprecated Please use the DateChangeResponse.date property. This will be removed when Foundry v10 stable is released.


moons

moons: MoonData[]


season

season: Season

deprecated Please use the DateChangeResponse.date property. This will be removed when Foundry v10 stable is released.


time

time: Time

deprecated Please use the DateChangeResponse.date property. This will be removed when Foundry v10 stable is released.


year

year: Year

deprecated Please use the DateChangeResponse.date property. This will be removed when Foundry v10 stable is released.