getUTCMinutes function
- Arguments
- 0
- Return values (number)
- A number (0–59) representing the minutes.
- Syntax
dateObj.getUTCMinutes()
- Examples
-
Example Result This script is added, as a custom script on an action, to any element with a Label property, such as a button. var d = new Date(); this.Label = d.getUTCMinutes();Assuming the current UTC time is 12:39:18.789: Returns "39" on the element's label. With Text1 and Text2 on a display, this script is added to the display's "OnOpen" event handling script. var date1 = new Date('1 January 2000 03:15:30 GMT+07:00'); var date2 = new Date('1 January 2000 03:15:30 GMT+03:30'); Dsp.Text1.Label = date1.getUTCMinutes(); Dsp.Text2.Label = date2.getUTCMinutes();Or, you can write the script this way:
var date1 = new Date('31 Dec 1999 20:15:30 GMT'); var date2 = new Date('31 Dec 1999 23:45:30 GMT'); Dsp.Text1.Label = date1.getUTCMinutes(); Dsp.Text2.Label = date2.getUTCMinutes();Returns "15" on Text1's label.
Returns "45" on Text2's label.