ii

Command-Line Argument Date Variables

For all modules, several command-line flags are subject to date-variable replacement modeled after the UNIX date command. For example, if a log file name is specified as ACCESS-$M.$D, this argument will be replaced by ACCESS-02.02 if run on February 2, and ACCESS-02.03 if run on February 3. A complete list of date variables can be found in the following table. The command-line arguments that can use this feature are:


iiCommand-line data variables

Command-line variable


Replaced by


$A

the full weekday name

$a

the abbreviated weekday name, where the abbreviation is the first three characters

$B

the full month name

$d

the day of the month as a decimal number (01-31)

$e

the day of month as a decimal number (1-31); single digits are preceded by a blank

$H

the hour (24-hour clock) as a decimal number (00-23)

$I

the hour (12-hour clock) as a decimal number (01-12)

$j

the day of the year as a decimal number (001-366)

$k

the hour (24-hour clock) as a decimal number (0-23); single digits are preceded by a blank

$l

the hour (12-hour clock) as a decimal number (1-12); single digits are preceded by a blank

$M

the minute as a decimal number (00-59)

$m

the month as a decimal number (01-12)

$p

``AM'' or ``PM'' as appropriate

$S

the second as a decimal number (00-60)

$s

the number of seconds since the January 1, 1969 at 4:00 p.m.

$U

the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)

$W

the week number of the year (Monday as the first day of the week) as a decimal number (00-53)

$w

the weekday (Sunday as the first day of the week) as a decimal number (0-6)

$Y

the year with century as a decimal number

$1

yesterday’s date in $m$d$y format




© 1996-1997 Microsoft Corporation. All rights reserved.