Skip to content

ClockInfo beta ​

Interface of @v12-engine/client

ts
export interface ClockInfo

Time of day, in a game that has days

Members ​

next ​

ts
next?: {
        phase: 'day' | 'night';
        seconds: number;
    };

What comes next, and in how many seconds of play: night at dusk, day at dawn

night ​

ts
night: boolean;

Whether it is night now

progress ​

ts
progress: number;

0..1 of the way through the day or the night

time ​

ts
time: string;

Like 18:30