What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help: How to write time to a txt file?

Help: How to write time to a txt file?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Help: How to write time to a txt file?
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.

This post was edited on 07-21-2007 at 08:54 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-21-2007 08:49 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help: How to write time to a txt file? - by alejoar on 07-21-2007 at 06:29 AM
RE: Help: How to write time to a txt file? - by CookieRevised on 07-21-2007 at 08:49 AM
RE: Help: How to write time to a txt file? - by GNSPS on 07-21-2007 at 01:14 PM
RE: Help: How to write time to a txt file? - by alejoar on 07-21-2007 at 11:16 PM
RE: Help: How to write time to a txt file? - by scott2010_h on 07-22-2007 at 08:21 AM
RE: Help: How to write time to a txt file? - by Felu on 07-22-2007 at 08:47 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On