PtClockTimeCallback

PtClockTimeCallback — time change callback information.

Synopsis

class PtClockTimeCallback
{
    hour;          // short
    minute;        // short
    old_hour;      // short
    old_minute;    // short
    old_second;    // short
    second;        // short
}
		

Description

This class holds information from the Pt_CB_CLOCK_TIME_CHANGED callback, which is generated when the time changes on a PtClock.

Also see Pt_CB_CLOCK_TIME_CHANGED in the PtClock section of the Photon documentation.

Instance Variables

hour

A number indicating the clock's new hour setting, in 24 hour format, and including any hour offset.

minute

A number indicating the clock's new minute setting.

old_hour

A number indicating the clock's previous hour setting, in 24 hour format, and including any hour offset.

old_minute

A number indicating the clock's previous minute setting.

old_second

A number indicating the clock's previous second setting.

second

A number indicating the clock's new second setting.

Associated Classes

PtClock, PtCallbackInfo