Template Commands/Variables

Current/Date/Time Header/Date/Time Other Command/Variable


Top

Current Date/Time Examples

Description Command Result
Weekday Name @SystemDate:%a or %A@ Sun or Sunday
Weekday Number @SystemDate:%w@ 0
Month @SystemDate:%b or %B or %m@ Jun or June or 06
Year @SystemDate:%y or %Y@ 98 or 1998
Default Display @SystemDate:%c@ Sun Jun 07 08:21:16 1998
Default Date Display @SystemDate:%x@ Sunday Jun 07
Default Time Display @SystemDate:%X@ 08:21:16
Complex Display @SystemDate:%d@ Sunday, June 07, 1998 - 08:21 AM
Day of Month @SystemDate:%d@ 07
Current Hour @SystemDate:%H or %I %p@ 08 or 08 AM
Current Minute @SystemDate:%M@ 21
Current Second @SystemDate:%S@ 21
Julian Date @SystemDate:%j@ 158
Current Week # @SystemDate:%U or %W@
U=Sun start, W=Mon start
23 or 22
Time Zone @SystemDate:%Z or %z@
z=Relative to GMT
-0400 or -0400, relative to GMT

Top



Top

Source Message Date/Time Examples

Description Command Result
Weekday Name @HeaderDate:%a or %A@ Sun or Sunday
Weekday Number @HeaderDate:%w@ 0
Month @HeaderDate:%b or %B or %m@ Jun or June or 06
Year @HeaderDate:%y or %Y@ 98 or 1998
Default Display @HeaderDate:%c@ Sun Jun 07 08:21:16 1998
Default Date Display @HeaderDate:%x@ Sunday Jun 07
Default Time Display @HeaderDate:%X@ 08:21:16
Complex Display @HeaderDate:%d@ Sunday, June 07, 1998 - 08:21 AM
Day of Month @HeaderDate:%d@ 07
Current Hour @HeaderDate:%H or %I %p@ 08 or 08 AM
Current Minute @HeaderDate:%M@ 21
Current Second @HeaderDate:%S@ 21
Julian Date @HeaderDate:%j@ 158
Current Week # @HeaderDate:%U or %W@
U=Sun start, W=Mon start
23 or 22
Time Zone @HeaderDate:%Z or %z@
z=Relative to GMT
-0400 or -0400, relative to GMT

Top


Top

Other Commands/Variables Examples

Description Command Result
Execute Program
@run: shortsig@
Executes shortsig.cmd /* */
/* The following rexx script rewrites mr2i.sig each time you send email. */
/* Generate a different funny signature each time v1.0 09/22/96 */
/* Modify original siganture format v1.1 10/13/96 */
/* Multiple sig file option not done at this time */
/* */
iline = Random(1, 94)
ifile = 'OneLiner.txt'
ofile = 'MR2i.sig'
Do iline
soneliner = Linein(ifile)
End
'@del' ofile '> nul'
/* */
/* if charin([stream_name][,[start][,length]])then do; end; */
/* */
lrc = Lineout(ofile, '')
lrc = Lineout(ofile, '-- ')
lrc = Lineout(ofile, ' Take Care, Jerry Koret , TEAM OS/2')
lrc = Lineout(ofile, '====================================================')
lrc = Lineout(ofile, '' soneliner)
lrc = Lineout(ofile, '====================================================')
lrc = Lineout(ofile, ' @SystemDate:%A, %B %d, 19%y - %I:%M %p@ (EDT) ')
lrc = Lineout(ofile, '====================================================')
lrc = Lineout(ofile, ' Home of Addons and Utilities for MR/2 ICE ')
lrc = Lineout(ofile, ' /index.htm" ')
lrc = Lineout(ofile, '====================================================')
lrc = Lineout(ofile, ' Home of The Greater New Haven Community Chorus ')
lrc = Lineout(ofile, ' /gnhcc.htm ')
lrc = Lineout(ofile, '====================================================')
/* */
/* Use this if filter use not desired for sig file */
/* '@start mr2i.exe /Madvantis,cfg' this line if used to start up mr2i.exe */
/* */
Include File $file: mr2i.sig Inserts mr2i.sig
User Name @username@ jkoret@jkoret.com

Top