Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetHour - method of the PmDateObject object

Description:
The hour of the day (integer 0-23).
Syntax:
Long GetHour()
Note:
This method is also functional in Web panels.
See also:
Example1:
Creates the object with current time.
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
var nHour = oDate.GetHour();
Example2:
Creates the PmDateObject object and sets it to date and time represented by PmDate - date and time in the PROMOTIC internal numeric form (the tDate variable).
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject( tDate);
var nHour = oDate.GetHour();

History:
Pm8.02.00: Created
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice