DJB Radio Spider 3 User's Guide
×
Menu
Index

Macro Variables

 
You may use the MT Date/Time Tokens in the "URL" and the "Download To" fields to dynamically create path and file names that contain date information.
 
Syntax
  {mt:Date:format} or    {mt:Date:directive:formatWhere directive and format are listed below:
 
Directives
mtSun     Uses the date of the next Sunday, including today if Sunday.                  
mtMon, mtTue, mtWed, mtThu, mtFri, mtSat Like mtSun, uses the next day the respective weekday appears, including today if a match.
mtSunL, mtMonL, mtTueL, mtWedL, mtThuL, mtFriL, mtSatL Uses the date of the last corresponding weekday,
but skipping today if a match (e.g. if today is Sunday, mtSunL returns last Sunday's date, not today's).
 
Format
YYYY          Four digit year
YY               Two digit year
MNMN          Long string format of month (i.e. January, February)
UMUM          Upper Case Long string format of month (i.e. JANUARY, FEBRUARY)
LMLM          Lower Case Long string format of month (i.e. january, february)
MMM               Short string format of month (i.e. Jan, Feb)
UMNM          Upper Case Short string format of month (i.e. JAN, FEB)
LMNM          Lower Case Short string format of month (i.e. jan, feb)
MM               Two digit format of month (i.e. Jan = 01, Dec=12)
M                    One or two digit format of month (i.e. Jan=1, Dec=12)
DDDD          Long string format of day (i.e. Monday, Tuesday)
UDDD          Upper Case Long string format of day (i.e. MONDAY, TUESDAY)
LDDD          Lower Case Long string format of day (i.e. monday, tuesday)
DDD          Short string format of day (i.e. Mon, Tue)
UDD          Upper Case Short string format of day (i.e. MON, TUE)
LDD          Lower Case Short string format of day (i.e. mon, tue)
DD               Two digit format of day of Month (i.e. 01, 15)
D                    One or two digit format of day of month (i.e. 1, 12)
(DD+#)          replace the # with a number to add that many days to the date.  Works with the DD macro only. eg (DD+4)
(DD-#)          replace the # with a number to subtract that many days from the date.  Works with the DD macro only. eg (DD-4)
TT               Two digit format of day of Month for Tomorrow (i.e. 01, 15)
T               One or two digit format of day of month Tomorrow (i.e. 1, 12)
HH24          Two digit format of Hour using military time (i.e. 1am=01, 12noon=12, 4pm=16)
H24          One or two digit format of hour using military time (i.e. 1am=1, 12noon=12, 4pm=16)
HH          Two digit format of Hour using 12 hour clock (i.e. 1am=01, 12noon=12, 4pm=4)
H               One or two digit format of hour using 12 hour clock (i.e. 1am=1, 12noon=12, 4pm=16)
mm          Two digit format of minute (i.e. 05, 25)
m               One or two digit format of minute (i.e. 5, 25)
SS          Two digit format of seconds (i.e. 05, 25)
S               One or two digit format of seconds (i.e. 5, 25)
AMPM     Two character String indicating morning or afternoon (i.e. am,pm)
AP          One character String indicating morning or afternoon (i.e. a, p)
BW          Two digit format of Week of Year for Broadcast Week(i.e. 02, 52)
WW          Two digit format of Week of Year Normal Week (i.e. 02, 52)
Z               Timezone abbreviation (i.e. EST, CST, PST)
 
Examples
Assume that the current time is December 11, 2019 5:33:43 PM EST
Formatted String & Result
Input:
Today is {mt:Date:MNMN DD, YYYY}
Result:
Today is December 11, 2019
 
Input:
Today is {mt:Date:UMUM D, YYYY}
Result:
Today is DECEMBER 11, 2019
 
Input:
The time is {mt:Date:HH:mm:SS AMPM Z}
Result:
The time is 05:33:43 PM EST
 
Input:
Friday of this week is {mt:Date:mtFri:MNMN D}
Result:
Friday of this week is December 13
The online help was created with Dr.Explain