lostbit Posted June 23, 2009 Share Posted June 23, 2009 I am running a simple script, I some how need to get the system time. I tried some of the actions but I am doing something wrong, or its windows 7 getting in the way. If I open a console (dos window) type time I get what I want. Any pointers how to get the time? Link to comment Share on other sites More sharing options...
LurchMan Posted June 23, 2009 Share Posted June 23, 2009 (edited) I am running a simple script, I some how need to get the system time. I tried some of the actions but I am doing something wrong, or its windows 7 getting in the way. If I open a console (dos window) type time I get what I want. Any pointers how to get the time? try this: #include <date.au3> $s12time = _NowTime(3);12 Hour Time $s24time = _NowTime(5);24 Hour Time ConsoleWrite("12 hour time: " & $s12time & " 24 Hour Time: " & $s24Time & @CRLF) Edited June 23, 2009 by LurchMan Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
lostbit Posted June 23, 2009 Author Share Posted June 23, 2009 I am running a simple script, I some how need to get the system time. I tried some of the actions but I am doing something wrong, or its windows 7 getting in the way. If I opena console (dos window) type time I get what I want. Any pointers how to get the time? Link to comment Share on other sites More sharing options...
lostbit Posted June 23, 2009 Author Share Posted June 23, 2009 I am running a simple script, I some how need to get the system time. I tried some of the actions but I am doing something wrong, or its windows 7 getting in the way. If I opena console (dos window) type time I get what I want. Any pointers how to get the time?Thanks I got it to work (THANKS!) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now