Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface TimeComponents

    A decomposition of the integer world time in seconds into component parts. Each component expresses the number of that temporal unit since the time=0 epoch.

    interface TimeComponents {
        day: number;
        dayOfMonth: number;
        dayOfWeek: number;
        hour: number;
        leapYear: boolean;
        minute: number;
        month: number;
        season: number;
        second: number;
        year: number;
    }
    Index

    Properties

    day: number

    The number of days completed within the year

    dayOfMonth: number

    The day of the month, starting from zero

    dayOfWeek: number

    The weekday, an index of the days.values array

    hour: number

    The number of hours completed within the year

    leapYear: boolean

    Is it a leap year?

    minute: number

    The number of minutes completed within the hour

    month: number

    The month, an index of the months.values array

    season: number

    The season, an index of the seasons.values array

    second: number

    The number of seconds completed within the minute

    year: number

    The number of years completed since zero