home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / macro_test.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  2.6 KB  |  76 lines

  1. ## macro_test.tg
  2. # Print out all DATE & TIME macros and provide a comment that describes what 
  3. #    the macro represents
  4.  
  5. {
  6.     -name macro_test
  7.     -start 
  8.     -stop
  9.  
  10.     -action -print ** Abbreviated weekday name
  11.     -action -print %DAY%
  12.     -action -print %a%    
  13.     -action -print ** Full weekday name
  14.     -action -print %A%    
  15.     -action -print ** Abbreviated month name
  16.     -action -print %MONTH%
  17.     -action -print %b%    
  18.     -action -print ** Full month name
  19.     -action -print %B%    
  20.     -action -print ** Date and time representation appropriate for locale
  21.     -action -print %c%    
  22.     -action -print ** Day of month as decimal number (01 û 31)
  23.     -action -print %d%    
  24.     -action -print ** Hour in 24-hour format (00 û 23)
  25.     -action -print %H%    
  26.     -action -print ** Hour in 12-hour format (01 û 12)
  27.     -action -print %I%    
  28.     -action -print ** Day of year as decimal number (001 û 366)
  29.     -action -print %j%    
  30.     -action -print ** Month as decimal number (01 û 12)
  31.     -action -print %m%    
  32.     -action -print ** Minute as decimal number (00 û 59)
  33.     -action -print %M%    
  34.     -action -print ** Current locale's A.M./P.M. indicator for 12-hour clock
  35.     -action -print %p%    
  36.     -action -print ** Second as decimal number (00 û 59)
  37.     -action -print %S%    
  38.     -action -print ** Week of year as decimal number, with Sunday as first day of week (00 û 51)
  39.     -action -print %U%    
  40.     -action -print ** Weekday as decimal number (0 û 6; Sunday is 0)
  41.     -action -print %w%    
  42.     -action -print ** Week of year as decimal number, with Monday as first day of week (00 û 51)
  43.     -action -print %W%    
  44.     -action -print ** Date representation for current locale
  45.     -action -print %x%    
  46.     -action -print ** Time representation for current locale
  47.     -action -print %X%    
  48.     -action -print ** Year without century, as decimal number (00 û 99)
  49.     -action -print %y%    
  50.     -action -print ** Year with century, as decimal number
  51.     -action -print %Y%    
  52.     -action -print ** Time-zone name or abbreviation; no characters if time zone is unknown
  53.     -action -print %z%    
  54.     -action -print %Z%    
  55.  
  56.     -action -print ** Long date and time representation, appropriate for current locale. For example: "Tuesday, March 14, 1995, 12:41:29".
  57.     -action -print %#c%    
  58.     -action -print ** Long date representation, appropriate to current locale. For example: "Tuesday, March 14, 1995".
  59.     -action -print %#x%    
  60.  
  61.     -action -print ** Remove leading zeros (if any).
  62.     -action -print %#d%
  63.     -action -print %#H%
  64.     -action -print %#I%
  65.     -action -print %#j%
  66.     -action -print %#m%
  67.     -action -print %#M%
  68.     -action -print %#S%
  69.     -action -print %#U%
  70.     -action -print %#w%
  71.     -action -print %#W%
  72.     -action -print %#y%
  73.     -action -print %#Y%
  74.  
  75.     -action -print Done!
  76. }