PDA

View Full Version : Keeping time


binil
10-16-2004, 05:45 AM
Hi all,

I am writing an application which essentially fetches some data off the server at then provides the user interface for seeing the data using some metaphors. But the application needs to remind the user how "old" the data is.

So I was planning to have some text somewhere on the GUI which says "Last updated on : DD-MM-YYYY-HH-MM. HH:MM has passed since last update"; or something on those lines. Hence I want to note the timestamp of the last data-fetch, find the present time, find the difference and update the text. This shd happen irrespective of what user is doing at the moment.

Can I accomplish this in Laszlo? If so, how do I do it? (Pointer to the documentation where this is discussed would do).

Thanks,
Binil

hqm
10-16-2004, 06:00 AM
new Date()

It's a Javascript standard object I believe.

http://www.laszlosystems.com/lps-2.2/docs/guide/ecmascript-and-lzx.html