Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


get system time


  • Please log in to reply
2 replies to this topic

#1 Guest_stanley_*

Guest_stanley_*
  • Guests

Posted 24 May 2004 - 12:58 PM

Hi,

is it possible to get the system time and store it in a variable?

regards
Stanley







#2 Beastmaster

Beastmaster

    Polymath

  • Active Members
  • PipPipPipPip
  • 240 posts

Posted 24 May 2004 - 01:57 PM

Yep, if you use NT/W2K/XP/? and ...

if Command Extensions are enabled, then there are several dynamic
environment variables that can be expanded but which don't show up i
the list of variables displayed by SET. These variable values are
computed dynamically each time the value of the variable is expanded
If the user explicitly defines a variable with one of these names, t
that definition will override the dynamic one described below:

%DATE% - expands to current date using same format as DATE command.

%TIME% - expands to current time using same format as TIME command.

:D

MsgBox, 0, My time is ..., %TIME%

#3 cohaholic

cohaholic

    Seeker

  • New Members
  • 7 posts

Posted 12 June 2005 - 09:56 PM

Yep, if you use NT/W2K/XP/? and ...

if Command Extensions are enabled, then there are several dynamic
environment variables that can be expanded but which don't show up i
the list of variables displayed by SET.  These variable values are
computed dynamically each time the value of the variable is expanded
If the user explicitly defines a variable with one of these names, t
that definition will override the dynamic one described below:

%DATE% - expands to current date using same format as DATE command.

%TIME% - expands to current time using same format as TIME command.

:(

MsgBox, 0, My time is ..., %TIME%

<{POST_SNAPBACK}>

and HOW do you enable this?

Thanks,
Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users