The question is
what do you want to do with that saved time?
What is the
purpose of it?
And what exactly do you mean by "time"?
And in what format? hh:mm:ss? or including the date? Long date? Short date?
etc...
It depends on the answers of those questions...
eg: If it is just for logging purposes you can simple add a line to the file like "Saterday, Juli 21st, 2007, 10:40pm".
But, if you're going to read the file again later on, it is very vital that you save the date/time in a format you can easly work with (preferable numerical) and which is not variable like the one above. Like "2007-07-21 22:40:43".
Since you know how to write something to a file, all you need to know are the functions and methods regarding time and dates.
These can be found in the
JScript 5.6 Documentation:
Contents > JScript (Windows Script Technologies) > JScript Language Reference > JScript Objects (JScript 5.6) > Date Object (Jscript 5.6)
If you go there you'll see all the methods and properties you can use regarding dates and times, including examples.
PS:quote:
Originally posted by alejoar
The only thing I found was this:
http://www.mpscripts.net/code.php?id=29
That's for something completely different.