|Load M3U Playlist By Date Mask.|
Opens your folder lister to select a folder where the M3U list are with the date to play.
"d" The day of the month, from 1 through 31.
"dd" The day of the month, from 01 through 31.
"ddd" The abbreviated name of the day of the week.
"dddd" The full name of the day of the week.
"h" The hour, using a 12-hour clock from 1 to 12.
"hh" The hour, using a 12-hour clock from 01 to 12.
"H" The hour, using a 24-hour clock from 0 to 23.
"HH" The hour, using a 24-hour clock from 00 to 23.
"m" The minute, from 0 through 59.
"mm" The minute, from 00 through 59.
"M" The month, from 1 through 12.
"MM" The month, from 01 through 12.
"MMM" The abbreviated name of the month.
"MMMM" The full name of the month.
"s" The second, from 0 through 59.
"ss" The second, from 00 through 59.
"t" The first character of the AM/PM designator.
"tt" The AM/PM designator.
"y" The year, from 0 to 99.
"yy" The year, from 00 to 99.
"yyy" The year as a four-digit number.
"yyyyy" The year as a five-digit number.
So, for our format we need to enter this mask: yyMMdd.HH The m3u extension will be added automatically by the program.
- We save the event and from now at each top of the hour RadioDJ will load the playlist for the day and hour at which it runs the event.
Most of the times is impossible for a scheduler to create a playlist with the exact duration of 60 minutes, especially if you don't have many tracks to choose from, so if you must sync the playlist start, you can also add two more actions to the event: "Clear Playlist" (to delete any not played tracks) and "Start Playing" (which will force to fade from the current playlist to the new one).
You have to set the argument field with the date mask!
M3U name is: 2017-07-25.m3u
The date part in the file is 2017-07-25
Date mask is: Y-m-d in the argument field (used separator is - a dash)
Note, this/it must be according to the PHP date().
Set in the argument field:
Don't forget the file extension.
The php date() is:
d Day of the month, 2 digits with leading zeros 01 to 31
D A textual representation of a day, three letters Mon through Sun
j Day of the month without leading zeros 1 to 31
m Numeric representation of a month, with leading zeros 01 through 12
n Numeric representation of a month, without leading zeros 1 through 12
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
Having a deeper understanding explained of programming in php!
Well this is not the intention.
Just a little bit of knowledge is enough, as showed in the list.
How the date mask works.
Also possible is a file name and hour like: morning_(2017-07-25)10.m3u
The mask will be: morning_(Y-m-d)H.m3u
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
B Swatch Internet time 000 through 999
g 12-hour format of an hour without leading zeros 1 through 12
G 24-hour format of an hour without leading zeros 0 through 23
h 12-hour format of an hour with leading zeros 01 through 12
H 24-hour format of an hour with leading zeros 00 through 23
i Minutes with leading zeros 00 to 59
s Seconds, with leading zeros 00 through 59
u Microseconds (added in PHP 5.2.2).
Note that date() will always generate 000000 since it takes an integer parameter,
whereas DateTime::format() does support microseconds if DateTime was created with microseconds.
v Milliseconds (added in PHP 7.0.0). Same note applies as for u.