Module:Release

local p = {} D = {} T = {} N = {} A = {} function ReleaseInsert(Date, Type, Name, Artist) table.insert(D, Date) table.insert(T, Type) table.insert(N, Name) table.insert(A, Artist) end

--These should go in chronological order. Please note that if an artist name includes a single quote, it needs to be written as \' so the quote is not interpreted as the end of the name.

ReleaseInsert('2020-08-24', '1st Digital Mini Album', 'JUVENILE', 'RILISREVERSE') ReleaseInsert('2020-08-25', '1st Mini Album', 'Step by Step', 'Sandal Telephone') ReleaseInsert('2020-08-26', '2nd Single', 'Night Diver', 'Miura Haruma') ReleaseInsert('2020-08-26', '3rd Single', 'Jan Jaka Jakasuka', 'Nanaland') ReleaseInsert('2020-08-26', '3rd Single', 'Towel wo Mawasu Tame no Uta', 'PiXMiX') ReleaseInsert('2020-08-26', '6th Single', 'Image (Uchida Yuma)|Image', 'Uchida Yuma') ReleaseInsert('2020-08-26', '9th Single', 'Tomorrow Saikyo Setsu!!', 'Cho Tokimeki♡Sendenbu') ReleaseInsert('2020-08-26', '18th Single', 'DREAMIN’ ON', 'Da-iCE') ReleaseInsert('2020-08-26', '18th Single', 'Realize (Suzuki Konomi)|Realize', 'Suzuki Konomi') ReleaseInsert('2020-08-26', '1st Mini Album', 'NiNa', 'Ozaki Yuka') ReleaseInsert('2020-08-26', '1st EP', 'Predawn', 'NELN') ReleaseInsert('2020-08-26', '1st EP', 'Hikari no Hoshi EP', 'ELISA') ReleaseInsert('2020-08-26', '1st Cover Album', 'Re Animator|Re>Animator', 'Mary\'s Blood') ReleaseInsert('2020-08-26', '2nd Album', 'note (Kamishiraishi Mone)|note', 'Kamishiraishi Mone') ReleaseInsert('2020-08-26', '3rd Album', 'paradox soar', 'Yukueshirezutsurezure') ReleaseInsert('2020-08-26', '4th Album', 'Heartbreaker', 'Ueda Marie') ReleaseInsert('2020-09-02', '3rd Single', 'Memento', 'nonoc') ReleaseInsert('2020-09-02', '3rd Single', 'Just Believe!!!', 'Nijigasaki High School Idol Club') ReleaseInsert('2020-09-02', '6th Single', 'Nadamesukashi Negotiation', 'Kano') ReleaseInsert('2020-09-02', '6th Single', 'Kokuhaku Bungee Jump', 'halca') ReleaseInsert('2020-09-02', '16th Single', 'Kiseki (LGM)|Kiseki', 'Little Glee Monster') ReleaseInsert('2020-09-02', 'Single', 'Maiorite Kita Yuki', 'Suzuki Konomi') ReleaseInsert('2020-09-02', '3rd Mini Album', 'GARDEN', 'Hayami Saori') ReleaseInsert('2020-09-02', '3rd Album', 'Paint it, BLUE', 'Amamiya Sora') ReleaseInsert('2020-09-02', '7th Album', 'mix10th', 'SILENT SIREN') ReleaseInsert('2020-09-02', '1st Acoustic Album', 'Acoustic for you.', 'Nanjo Yoshino') ReleaseInsert('2020-09-04', '1st Single', 'Ima to Anogoro no Bokura', 'Kiyohara Kaya') ReleaseInsert('2020-09-04', '1st Album', 'The Battle Of Nightmares', 'GARUDA') ReleaseInsert('2020-09-09', '16th Video Release', 'LEGEND - METAL GALAXY', 'BABYMETAL') ReleaseInsert('2020-09-09', '5th Live Album', 'LEGEND - METAL GALAXY (DAY-1)', 'BABYMETAL') ReleaseInsert('2020-09-09', '6th Live Album', 'LEGEND - METAL GALAXY (DAY-2)', 'BABYMETAL') ReleaseInsert('2020-09-09', '31st Single', 'Jounetsu wa Oboete Iru', 'GRANRODEO') ReleaseInsert('2020-09-16', '1st Single', 'Yasashisa no Namae', 'Suzuki Aina') ReleaseInsert('2020-09-16', '7th Album', 'CONTINUE?', 'A.B.C-Z') ReleaseInsert('2020-09-30', '2nd Album', 'Karma', 'BRATS') ReleaseInsert('2020-09-30', '4th Album', 'HOME MADE CHU!?', 'M!LK')

ReleaseInsert('2020-10-04', 'Single', 'reproduce', 'Takeuchi Mariya') ReleaseInsert('2020-10-08', 'Single', 'hellish', 'Hinatazaka46') ReleaseInsert('2020-10-12', 'Album', 'pastoral', 'Johnny\'s West') ReleaseInsert('2020-10-16', 'Single', 'writing', 'Sexy Zone') ReleaseInsert('2020-10-20', 'Single', 'regret', '=Love') ReleaseInsert('2020-10-24', 'Single', 'guttural', 'Nogizaka46') ReleaseInsert('2020-10-28', 'Album', 'absurd', 'Ballistik Boyz')

ReleaseInsert('2020-11-01', '2nd Single', 'chew', 'One N\' Only') ReleaseInsert('2020-11-05', 'Single', 'married', 'The Rampage') ReleaseInsert('2020-11-09', 'Single', 'adamant', 'Ryuji Imaichi') ReleaseInsert('2020-11-13', 'Album', 'skip', 'Takeuchi Mariya') ReleaseInsert('2020-11-17', 'Single', 'grade', 'Hinatazaka46') ReleaseInsert('2020-11-21', 'Single', 'fairies', 'Johnny\'s West') ReleaseInsert('2020-11-25', 'Single', 'gainful', 'Sexy Zone') ReleaseInsert('2020-11-29', 'Album', 'airplane', '=Love')

ReleaseInsert('2020-12-03', 'Single', 'shrug', 'Nogizaka46') ReleaseInsert('2020-12-07', 'Single', 'gratis', 'Ballistik Boyz') ReleaseInsert('2020-12-11', 'Single', 'upbeat', 'One N\' Only') ReleaseInsert('2020-12-15', 'Album', 'title', 'The Rampage') ReleaseInsert('2020-12-20', 'Single', 'pour', 'Ryuji Imaichi') ReleaseInsert('2020-12-23', 'Single', 'versed', 'Takeuchi Mariya') ReleaseInsert('2020-12-27', 'Single', 'bomb', 'Hinatazaka46') ReleaseInsert('2020-12-31', 'Album', 'tan', 'Johnny\'s West')

ReleaseInsert('2020-01-04', 'Single', 'worm', 'Sexy Zone') ReleaseInsert('2020-01-08', '3rd Single', 'copper', '=Love') ReleaseInsert('2020-01-12', 'Single', 'horse', 'Nogizaka46') ReleaseInsert('2020-01-16', 'Album', 'chop', 'Ballistik Boyz') ReleaseInsert('2020-01-20', 'Single', 'naive', 'One N\' Only') ReleaseInsert('2020-01-24', 'Single', 'wise', 'The Rampage') ReleaseInsert('2020-01-28', 'Single', 'cooperative', 'Ryuji Imaichi') ReleaseInsert('2020-02-01', 'Album', 'shy', 'Takeuchi Mariya') ReleaseInsert('2020-02-05', 'Single', 'snatch', 'Hinatazaka46') ReleaseInsert('2020-02-09', 'Single', 'shock', 'Johnny\'s West') ReleaseInsert('2020-02-13', 'Single', 'sprout', 'Sexy Zone') ReleaseInsert('2020-02-17', 'Album', 'endurable', '=Love') ReleaseInsert('2020-02-21', 'Single', 'nasty', 'Nogizaka46') ReleaseInsert('2020-02-25', 'Single', 'volcano', 'Ballistik Boyz') ReleaseInsert('2020-03-01', 'Single', 'concern', 'One N\' Only') ReleaseInsert('2020-03-05', 'Album', 'old', 'The Rampage') ReleaseInsert('2020-03-09', 'Single', 'ruthless', 'Ryuji Imaichi') ReleaseInsert('2020-03-13', 'Single', 'stem', 'Takeuchi Mariya') ReleaseInsert('2020-03-17', 'Single', 'work', 'Hinatazaka46') ReleaseInsert('2020-03-21', 'Album', 'tenuous', 'Johnny\'s West') ReleaseInsert('2020-03-25', 'Single', 'page', 'Sexy Zone') ReleaseInsert('2020-03-29', 'Single', 'faded', '=Love') ReleaseInsert('2020-04-02', 'Single', 'magnificent', 'Nogizaka46') ReleaseInsert('2020-04-06', 'Album', 'floor', 'Ballistik Boyz') ReleaseInsert('2020-04-10', 'Single', 'flippant', 'One N\' Only') ReleaseInsert('2020-04-14', 'Single', 'shoes', 'The Rampage') ReleaseInsert('2020-04-20', 'Single', 'nifty', 'Ryuji Imaichi') ReleaseInsert('2020-04-22', 'Album', 'future', 'Takeuchi Mariya') ReleaseInsert('2020-04-26', 'Single', 'swing', 'Hinatazaka46') ReleaseInsert('2020-04-30', 'Single', 'scarf', 'Johnny\'s West') ReleaseInsert('2020-05-04', 'Single', 'cynical', 'Sexy Zone') ReleaseInsert('2020-05-08', '1st Album', 'unbiased', '=Love') ReleaseInsert('2020-05-12', 'Single', 'icicle', 'Nogizaka46') ReleaseInsert('2020-05-16', 'Single', 'empty', 'Ballistik Boyz') ReleaseInsert('2020-05-20', 'Single', 'general', 'One N\' Only') ReleaseInsert('2020-05-24', 'Album', 'tempt', 'The Rampage') ReleaseInsert('2020-05-28', 'Single', 'trick', 'Ryuji Imaichi') ReleaseInsert('2020-06-01', 'Single', 'ants', 'Takeuchi Mariya') ReleaseInsert('2020-06-05', 'Single', 'yell', 'Hinatazaka46') ReleaseInsert('2020-06-09', 'Album', 'point', 'Johnny\'s West') ReleaseInsert('2020-06-13', 'Single', 'attack', 'Sexy Zone') ReleaseInsert('2020-06-17', 'Single', 'insurance', '=Love') ReleaseInsert('2020-06-21', 'Single', 'accurate', 'Nogizaka46') ReleaseInsert('2020-06-25', 'Album', 'smiling', 'Ballistik Boyz') ReleaseInsert('2020-06-29', 'Single', 'ordinary', 'One N\' Only') ReleaseInsert('2020-07-03', 'Single', 'zip', 'The Rampage') ReleaseInsert('2020-07-07', 'Single', 'question', 'Ryuji Imaichi') ReleaseInsert('2020-07-11', 'Album', 'material', 'Takeuchi Mariya') ReleaseInsert('2020-07-15', 'Single', 'bone', 'Hinatazaka46') ReleaseInsert('2020-07-20', 'Single', 'modern', 'Johnny\'s West') ReleaseInsert('2020-07-23', 'Single', 'suggest', 'Sexy Zone') ReleaseInsert('2020-07-27', 'Album', 'calm', '=Love') ReleaseInsert('2020-07-31', 'Single', 'turn', 'Nogizaka46') ReleaseInsert('2020-08-04', 'Single', 'wound', 'Ballistik Boyz') ReleaseInsert('2020-08-08', 'Single', 'inquisitive', 'One N\' Only') ReleaseInsert('2020-08-12', '2nd Album', 'auspicious', 'The Rampage') ReleaseInsert('2020-08-16', 'Single', 'whimsical', 'Ryuji Imaichi') ReleaseInsert('2020-08-20', 'Single', 'fang', 'Takeuchi Mariya') ReleaseInsert('2020-08-24', 'Single', 'powerful', 'Hinatazaka46') ReleaseInsert('2020-08-28', 'Album', 'border', 'Johnny\'s West') ReleaseInsert('2020-09-01', 'Single', 'furry', 'Sexy Zone') ReleaseInsert('2020-09-05', 'Single', 'appreciate', '=Love') ReleaseInsert('2020-09-09', 'Single', 'devilish', 'Nogizaka46') ReleaseInsert('2020-09-13', 'Album', 'thumb', 'Ballistik Boyz') ReleaseInsert('2020-09-17', 'Single', 'straight', 'One N\' Only') ReleaseInsert('2020-09-21', 'Single', 'many', 'The Rampage') ReleaseInsert('2020-09-25', 'Single', 'aquatic', 'Ryuji Imaichi') ReleaseInsert('2020-09-29', 'Album', 'receive', 'Takeuchi Mariya') ReleaseInsert('2020-10-03', 'Single', 'remarkable', 'Hinatazaka46') ReleaseInsert('2020-10-07', 'Single', 'snake', 'Johnny\'s West') ReleaseInsert('2020-10-11', 'Single', 'merciful', 'Sexy Zone') ReleaseInsert('2020-10-15', 'Album', 'willing', '=Love') ReleaseInsert('2020-10-20', 'Single', 'care', 'Nogizaka46') ReleaseInsert('2020-10-23', 'Single', 'crazy', 'Ballistik Boyz') ReleaseInsert('2020-10-27', 'Single', 'coil', 'One N\' Only') ReleaseInsert('2020-10-31', 'Album', 'boat', 'The Rampage') ReleaseInsert('2020-11-04', 'Single', 'historical', 'Ryuji Imaichi') ReleaseInsert('2020-11-08', 'Single', 'punch', 'Takeuchi Mariya') ReleaseInsert('2020-11-12', 'Single', 'quick', 'Hinatazaka46') ReleaseInsert('2020-11-16', 'Album', 'dare', 'Johnny\'s West') ReleaseInsert('2020-11-20', 'Single', 'steep', 'Sexy Zone') ReleaseInsert('2020-11-24', 'Single', 'uptight', '=Love') ReleaseInsert('2020-11-28', 'Single', 'jobless', 'Nogizaka46') ReleaseInsert('2020-12-02', 'Album', 'zinc', 'Ballistik Boyz') ReleaseInsert('2020-12-06', 'Single', 'smell', 'One N\' Only') ReleaseInsert('2020-12-10', 'Single', 'public', 'The Rampage') ReleaseInsert('2020-12-14', 'Single', 'wilderness', 'Ryuji Imaichi') ReleaseInsert('2020-12-20', 'Album', 'challenge', 'Takeuchi Mariya') ReleaseInsert('2020-12-22', 'Single', 'day', 'Hinatazaka46') ReleaseInsert('2020-12-26', 'Single', 'canvas', 'Johnny\'s West') ReleaseInsert('2020-12-30', 'Single', 'examine', 'Sexy Zone') ReleaseInsert('2020-01-03', 'Album', 'lying', '=Love') ReleaseInsert('2020-01-07', 'Single', 'unable', 'Nogizaka46') ReleaseInsert('2020-01-11', '1st Single', 'lacking', 'Ballistik Boyz') ReleaseInsert('2020-01-15', '3rd Single', 'disturbed', 'One N\' Only') ReleaseInsert('2020-01-20', '10th Album', 'squirrel', 'The Rampage') ReleaseInsert('2020-01-20', 'Single', 'Lying', 'The Fake') ReleaseInsert('2020-01-20', 'Album', 'Dummy', 'Data') ReleaseInsert('2020-01-23', 'Single', 'trace', 'Ryuji Imaichi') ReleaseInsert('2020-01-23', 'Single', 'more trace', 'Ryuji Imaichi') ReleaseInsert('2020-01-27', 'Single', 'roasted', 'Takeuchi Mariya') ReleaseInsert('2020-01-31', '2nd Single', 'drunk', 'Hinatazaka46') ReleaseInsert('2020-02-04', 'Album', 'alleged', 'Johnny\'s West') ReleaseInsert('2020-02-08', 'Single', 'fill', 'Sexy Zone') ReleaseInsert('2020-02-12', 'Single', 'neat', '=Love') ReleaseInsert('2020-02-16', 'Single', 'rub', 'Nogizaka46') ReleaseInsert('2020-02-20', 'Album', 'juvenile', 'Ballistik Boyz') ReleaseInsert('2020-02-24', 'Single', 'jazzy', 'One N\' Only') ReleaseInsert('2020-02-28', 'Single', 'dear', 'The Rampage') ReleaseInsert('2020-03-03', 'Single', 'unite', 'Ryuji Imaichi') ReleaseInsert('2020-03-07', 'Album', 'luxuriant', 'Takeuchi Mariya') ReleaseInsert('2020-03-11', 'Single', 'white', 'Hinatazaka46') ReleaseInsert('2020-03-15', 'Single', 'overjoyed', 'Johnny\'s West') ReleaseInsert('2020-03-20', 'Single', 'quill', 'Sexy Zone') ReleaseInsert('2020-03-23', 'Album', 'tease', '=Love') ReleaseInsert('2020-03-27', 'Single', 'hideous', 'Nogizaka46') ReleaseInsert('2020-03-31', 'Single', 'repeat', 'Ballistik Boyz') ReleaseInsert('2020-04-04', 'Single', 'sheep', 'One N\' Only') ReleaseInsert('2020-04-08', 'Album', 'end', 'The Rampage') ReleaseInsert('2020-04-12', 'Single', 'class', 'Ryuji Imaichi') ReleaseInsert('2020-04-16', 'Single', 'haircut', 'Takeuchi Mariya') ReleaseInsert('2020-04-20', 'Single', 'dislike', 'Hinatazaka46') ReleaseInsert('2020-04-24', 'Album', 'store', 'Johnny\'s West') ReleaseInsert('2020-04-28', 'Single', 'gamy', 'Sexy Zone') ReleaseInsert('2020-05-02', 'Single', 'observation', '=Love') ReleaseInsert('2020-05-06', 'Single', 'cluttered', 'Nogizaka46') ReleaseInsert('2020-05-10', 'Album', 'rain', 'Ballistik Boyz') ReleaseInsert('2020-05-14', 'Single', 'letters', 'One N\' Only') ReleaseInsert('2020-05-20', 'Single', 'vacation', 'The Rampage') ReleaseInsert('2020-05-22', 'Single', 'month', 'Ryuji Imaichi') ReleaseInsert('2020-05-26', 'Album', 'condition', 'Takeuchi Mariya') ReleaseInsert('2020-05-30', 'Single', 'shiver', 'Hinatazaka46') ReleaseInsert('2020-06-03', 'Single', 'church', 'Johnny\'s West') ReleaseInsert('2020-06-07', 'Single', 'file', 'Sexy Zone') ReleaseInsert('2020-06-11', 'Album', 'bewildered', '=Love') ReleaseInsert('2020-06-15', 'Single', 'accessible', 'Nogizaka46') ReleaseInsert('2020-06-20', 'Single', 'seemly', 'Ballistik Boyz') ReleaseInsert('2020-06-23', 'Single', 'cumbersome', 'One N\' Only') ReleaseInsert('2020-06-27', 'Album', 'sack', 'The Rampage') ReleaseInsert('2020-07-01', 'Single', 'ladybug', 'Ryuji Imaichi') ReleaseInsert('2020-07-05', 'Single', 'abiding', 'Takeuchi Mariya') ReleaseInsert('2020-07-09', 'Single', 'painstaking', 'Hinatazaka46') ReleaseInsert('2020-07-13', 'Album', 'chicken', 'Johnny\'s West') ReleaseInsert('2020-07-17', 'Single', 'political', 'Sexy Zone') ReleaseInsert('2020-07-21', 'Single', 'snail', '=Love') ReleaseInsert('2020-07-25', 'Single', 'avoid', 'Nogizaka46') ReleaseInsert('2020-07-29', 'Album', 'offend', 'Ballistik Boyz') ReleaseInsert('2020-08-02', 'Single', 'magical', 'One N\' Only') ReleaseInsert('2020-08-06', 'Single', 'friction', 'The Rampage') ReleaseInsert('2020-08-10', 'Single', 'produce', 'Ryuji Imaichi') ReleaseInsert('2020-08-14', 'Album', 'broad', 'Takeuchi Mariya') ReleaseInsert('2020-08-20', 'Single', 'quixotic', 'Hinatazaka46') ReleaseInsert('2020-08-22', 'Single', 'curve', 'Johnny\'s West') ReleaseInsert('2020-08-26', 'Single', 'pigs', 'Sexy Zone') ReleaseInsert('2020-08-30', 'Album', 'coast', '=Love') ReleaseInsert('2020-09-03', 'Single', 'teeny-tiny', 'Nogizaka46') ReleaseInsert('2020-09-07', 'Single', 'surprise', 'Ballistik Boyz') ReleaseInsert('2020-09-11', 'Single', 'ill', 'One N\' Only') ReleaseInsert('2020-09-15', 'Album', 'part', 'The Rampage') ReleaseInsert('2020-09-20', 'Single', 'subtract', 'Ryuji Imaichi') ReleaseInsert('2020-09-23', 'Single', 'muddle', 'Takeuchi Mariya') ReleaseInsert('2020-09-27', 'Single', 'innate', 'Hinatazaka46') ReleaseInsert('2020-10-01', 'Album', 'song', 'Johnny\'s West') ReleaseInsert('2020-10-05', 'Single', 'dull', 'Sexy Zone') ReleaseInsert('2020-10-09', 'Single', 'uninterested', '=Love') ReleaseInsert('2020-10-13', 'Single', 'bump', 'Nogizaka46') ReleaseInsert('2020-10-17', 'Album', 'license', 'Ballistik Boyz') ReleaseInsert('2020-10-21', 'Single', 'low', 'One N\' Only') ReleaseInsert('2020-10-25', 'Single', 'bouncy', 'The Rampage') ReleaseInsert('2020-10-29', 'Single', 'clear', 'Ryuji Imaichi') ReleaseInsert('2020-11-02', 'Album', 'attractive', 'Takeuchi Mariya') ReleaseInsert('2020-11-06', 'Single', 'melodic', 'Hinatazaka46') ReleaseInsert('2020-11-10', 'Single', 'torpid', 'Johnny\'s West') ReleaseInsert('2020-11-14', 'Single', 'vulgar', 'Sexy Zone') ReleaseInsert('2020-11-20', 'Album', 'whirl', '=Love') ReleaseInsert('2020-11-22', 'Single', 'mysterious', 'Nogizaka46') ReleaseInsert('2020-11-26', 'Single', 'scared', 'Ballistik Boyz') ReleaseInsert('2020-11-30', 'Single', 'delay', 'One N\' Only') ReleaseInsert('2020-12-04', 'Album', 'wry', 'The Rampage') ReleaseInsert('2020-12-08', 'Single', 'unknown', 'Ryuji Imaichi') ReleaseInsert('2020-12-12', 'Single', 'sail', 'Takeuchi Mariya') ReleaseInsert('2020-12-16', 'Single', 'egg', 'Hinatazaka46') ReleaseInsert('2020-12-20', 'Album', 'quiver', 'Johnny\'s West') ReleaseInsert('2020-12-24', 'Single', 'instruct', 'Sexy Zone') ReleaseInsert('2020-12-28', 'Single', 'therapeutic', '=Love') ReleaseInsert('2021-01-01', 'Single', 'rich', 'Nogizaka46')

function Ordinal(anumber) if anumber % 10 == 1 then return anumber .. "st" elseif anumber % 10 == 2 then if anumber%100==12 then return anumber .. "th" else return anumber .. "nd" end elseif anumber % 10 == 3 then if anumber%100==13 then return anumber .. "th" else return anumber .. "rd" end else return anumber .. "th" end end

function WhereDateXStarts(yyyymmdd) i = 0 repeat i=i+1 until D[i] >= yyyymmdd or i == table.getn(D) if D[i] < yyyymmdd then i = 1 end return i end

function WhereDateXEnds(yyyymmdd) i = 0 repeat i=i+1 until D[i] > yyyymmdd or i == table.getn(D) if D[i] > yyyymmdd then i = i-1 end return i end function p.upcoming(frame) num_days = tonumber(frame.args.days or 7) num_min = tonumber(frame.args.min or 2) num_max = tonumber(frame.args.max or 999999) starting = frame.args.starting or os.date("%Y-%m-%d",os.time+32400) ending = os.date("%Y-%m-%d", os.time{year=string.sub(starting,1,4), month=string.sub(starting,6,7), day=string.sub(starting,9,10)}+86400*(num_days-1)) --output = "num_days: " .. num_days .. "num_min: " .. num_min .. "starting: " .. starting .. "ending: " ..ending --if 1>0 then return output end STARTBEGINS = WhereDateXStarts(starting) ENDENDS = WhereDateXEnds(ending) if (STARTBEGINS+num_max-1)0 then return output end LISTEND = table.getn(D)

--output = "starting: " .. starting .. " ending: " .. ending .. " STARTBEGINS: " .. STARTBEGINS .. " ENDENDS: " .. ENDENDS .. " LISTEND: " .. LISTEND lastday = 0 output = "" --First read group i = STARTBEGINS while i<= ENDENDS do       thisday = string.sub( D[i], 6, 10 ) if thisday ~= lastday then --It's a new day, something should be written. output = output .. ";" .. os.date("%B %e", os.time{year=2001, month=string.sub(D[i],6,7), day=string.sub(D[i],9,10)}) if thisday==starting then output = output .. ", Release Day!" else output = output .. "" end output = output .. "\n" end output = output .. ": '''" .. T[i] .. "''' " .. N[i] .. " by " .. A[i] .. "\n" lastday = thisday i=i+1 end return output -- .. " " .. os.clock end

function p.between(frame) startdate=frame.args[1] enddate=frame.args[2] typesearch = frame.args.typesearch if startdate > enddate then --You trying to screw things up? Well, we'll just flip 'em. temp = startdate startdate = enddate enddate = temp end output = "" STARTBEGINS = WhereDateXStarts(startdate) ENDENDS = WhereDateXEnds(enddate) --output = "ENDENDS: " .. ENDENDS --if 1>0 then return output end LISTEND = table.getn(D)

--output = "starting: " .. starting .. " ending: " .. ending .. " STARTBEGINS: " .. STARTBEGINS .. " ENDENDS: " .. ENDENDS .. " LISTEND: " .. LISTEND output = "" --First read group i = STARTBEGINS while i<= ENDENDS do       if string.find(string.lower(T[i]), string.lower(typesearch)) then output = output .. ":" .. D[i] .. " '''" .. T[i] .. "''' " .. N[i] .. " by " .. A[i] .. "\n" end i=i+1 end return output end function p.random math.randomseed( os.time ) return "" .. N[math.random(" end return p --