Your Universal Remote Control Center
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from


Original thread:
Post 1 made on Sunday June 15, 2008 at 19:19
Derek Nickel
Founding Member
October 2001
I am creating a simple page with a big clock. I want the clock to change time a the correct moment, so I need to schedule the next display update to be the number of milliseconds remaining in the current minute. I was trying to use the Date class for this, but I am getting bad results.

Here's my Page ProntoScript.
var dsp = GUI.widget("TIME_DISPLAY");


function UpdateDisplay()
var d = new Date();
// set dsp.label
// calculate delay...
// scheduleAfter(delay, UpdateDisplay);

If run now, thee date that is displayed is:
Tue Feb 25 2031 03:02:11 GMT-0800
This is clearly wrong.

GUI.getDisplayTime() returns the correct time. Does this mean that the Date class is broken or unsupported or have I done something wrong.


Hosting Services by ipHouse