Debugging Show Times Logic
==========================

$perth_day is Wednesday
$perth_stamp is 1513109867
$start_of_today_timestamp is 1513094400
$start_of_yesterday_timestamp is 1513008000
$start_of_tomorrow_timestamp is 1513180800
$key is Wednesday
$pkey is Tuesday
$nkey is Thursday
$yesterday_show_data is: Array
(
    [0] => Array
        (
            [show] => Up Late
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-11 01:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513011600
            [friendly_times] => 1am-4am
            [friendly_days] => Mondays - Fridays
            [slug] => uplate
            [id] => 281
            [home_page_image] => 
            [short_description] => A diverse range of tunes to keep you kicking into the night.
            [permalink] => https://rtrfm.com.au/shows/uplate/
            [gridDayOfWeek] => Monday
            [realDayOfWeek] => Tuesday
        )

    [1] => Array
        (
            [show] => Snooze Button
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-11 04:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513022400
            [friendly_times] => 4am-6am
            [friendly_days] => Saturdays - Fridays
            [slug] => snoozebutton
            [id] => 282
            [home_page_image] => 
            [short_description] => An eclectic music mix for early risers and night owls.


            [permalink] => https://rtrfm.com.au/shows/snoozebutton/
            [gridDayOfWeek] => Monday
            [realDayOfWeek] => Tuesday
        )

    [2] => Array
        (
            [show] => Breakfast with Caitlin
            [sort_date_time] => DateTime Object
                (
                    [date] => 2016-08-02 06:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513029600
            [friendly_times] => 6am-9am
            [friendly_days] => Weekdays
            [slug] => breakfast
            [id] => 48
            [home_page_image] => 
            [short_description] => Start the morning right as Caitlin Nienaber chats to a host of guests from here and abroad.
            [permalink] => https://rtrfm.com.au/shows/breakfast/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [3] => Array
        (
            [show] => The Mag
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-07-11 09:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513040400
            [friendly_times] => 9am
            [friendly_days] => Mondays-Thursdays
            [slug] => mag
            [id] => 65
            [home_page_image] => 
            [short_description] => Tackling news and current affairs in an informative and informed manner.
            [permalink] => https://rtrfm.com.au/shows/mag/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [4] => Array
        (
            [show] => Talk the Talk
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 11:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513047600
            [friendly_times] => 11am-12pm
            [friendly_days] => Tuesdays
            [slug] => talkthetalk
            [id] => 18644
            [home_page_image] => 
            [short_description] => Talk the Talk is RTRFM's weekly foray into the science of language. Linguist Daniel Midgley and smart person Ben Ainslie tackle language change, language tech, new words, society, minority languages, and language and the mind.
            [permalink] => https://rtrfm.com.au/shows/talkthetalk/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [5] => Array
        (
            [show] => Out to Lunch
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 12:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513051200
            [friendly_times] => 12pm-3pm
            [friendly_days] => Weekdays
            [slug] => otl
            [id] => 66
            [home_page_image] => 
            [short_description] => Your new release feast, showcasing all the latest sounds from indie pop to out there experimentalism.
            [permalink] => https://rtrfm.com.au/shows/otl/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [6] => Array
        (
            [show] => Full Frequency
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 15:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513062000
            [friendly_times] => 3pm-5pm
            [friendly_days] => Weekdays
            [slug] => fullfrequency
            [id] => 60
            [home_page_image] => 
            [short_description] => The latest in all styles of club and electronica, mixing it up with local and international reviews - your news forum for clubbing in Perth!
            [permalink] => https://rtrfm.com.au/shows/fullfrequency/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [7] => Array
        (
            [show] => Drivetime
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 17:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513069200
            [friendly_times] => 5pm-7pm
            [friendly_days] => Weekdays
            [slug] => drivetime
            [id] => 67
            [home_page_image] => 
            [short_description] => A diverse mix of new tunes and classics – experience a different drive home.
            [permalink] => https://rtrfm.com.au/shows/drivetime/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [8] => Array
        (
            [show] => Rock, Rattle & Roll
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 19:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513076400
            [friendly_times] => 7pm-9pm
            [friendly_days] => Tuesdays
            [slug] => rockrattle
            [id] => 283
            [home_page_image] => 
            [short_description] => Vintage rock'n'roll, rockabilly and classic R'n'B.
            [permalink] => https://rtrfm.com.au/shows/rockrattle/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [9] => Array
        (
            [show] => El Ritmo
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 21:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513083600
            [friendly_times] => 9pm-11pm
            [friendly_days] => Tuesdays
            [slug] => elritmo
            [id] => 284
            [home_page_image] => 
            [short_description] => Latin, lounge and hi-fi exotica – music for the sonic sophisticate
            [permalink] => https://rtrfm.com.au/shows/elritmo/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

    [10] => Array
        (
            [show] => Bass Check
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-14 23:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513090800
            [friendly_times] => 11pm-1am
            [friendly_days] => Tuesdays
            [slug] => basscheck
            [id] => 285
            [home_page_image] => 
            [short_description] => Specialising in low-end electronic music, from Trip-Hop to Dubstep and the outer reaches of sound.
            [permalink] => https://rtrfm.com.au/shows/basscheck/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Tuesday
        )

)
$show_data is: Array
(
    [0] => Array
        (
            [show] => Up Late
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-12 01:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513098000
            [friendly_times] => 1am-4am
            [friendly_days] => Mondays - Fridays
            [slug] => uplate
            [id] => 281
            [home_page_image] => 
            [short_description] => A diverse range of tunes to keep you kicking into the night.
            [permalink] => https://rtrfm.com.au/shows/uplate/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Wednesday
        )

    [1] => Array
        (
            [show] => Snooze Button
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-12 04:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513108800
            [friendly_times] => 4am-6am
            [friendly_days] => Saturdays - Fridays
            [slug] => snoozebutton
            [id] => 282
            [home_page_image] => 
            [short_description] => An eclectic music mix for early risers and night owls.


            [permalink] => https://rtrfm.com.au/shows/snoozebutton/
            [gridDayOfWeek] => Tuesday
            [realDayOfWeek] => Wednesday
        )

    [2] => Array
        (
            [show] => Breakfast with Caitlin
            [sort_date_time] => DateTime Object
                (
                    [date] => 2016-08-03 06:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513116000
            [friendly_times] => 6am-9am
            [friendly_days] => Weekdays
            [slug] => breakfast
            [id] => 48
            [home_page_image] => 
            [short_description] => Start the morning right as Caitlin Nienaber chats to a host of guests from here and abroad.
            [permalink] => https://rtrfm.com.au/shows/breakfast/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [3] => Array
        (
            [show] => The Mag
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-07-05 09:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513126800
            [friendly_times] => 9am
            [friendly_days] => Mondays-Thursdays
            [slug] => mag
            [id] => 65
            [home_page_image] => 
            [short_description] => Tackling news and current affairs in an informative and informed manner.
            [permalink] => https://rtrfm.com.au/shows/mag/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [4] => Array
        (
            [show] => All Things Queer
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-05 11:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513134000
            [friendly_times] => 11am-12pm
            [friendly_days] => Wednesdays
            [slug] => allthingsqueer
            [id] => 280
            [home_page_image] => 
            [short_description] => Exploring diverse sexuality and supporting Perth's LGBT+ community.
            [permalink] => https://rtrfm.com.au/shows/allthingsqueer/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [5] => Array
        (
            [show] => Out to Lunch
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 12:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513137600
            [friendly_times] => 12pm-3pm
            [friendly_days] => Weekdays
            [slug] => otl
            [id] => 66
            [home_page_image] => 
            [short_description] => Your new release feast, showcasing all the latest sounds from indie pop to out there experimentalism.
            [permalink] => https://rtrfm.com.au/shows/otl/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [6] => Array
        (
            [show] => Full Frequency
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 15:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513148400
            [friendly_times] => 3pm-5pm
            [friendly_days] => Weekdays
            [slug] => fullfrequency
            [id] => 60
            [home_page_image] => 
            [short_description] => The latest in all styles of club and electronica, mixing it up with local and international reviews - your news forum for clubbing in Perth!
            [permalink] => https://rtrfm.com.au/shows/fullfrequency/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [7] => Array
        (
            [show] => Drivetime
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 17:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513155600
            [friendly_times] => 5pm-7pm
            [friendly_days] => Weekdays
            [slug] => drivetime
            [id] => 67
            [home_page_image] => 
            [short_description] => A diverse mix of new tunes and classics – experience a different drive home.
            [permalink] => https://rtrfm.com.au/shows/drivetime/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [8] => Array
        (
            [show] => Posted
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 19:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513162800
            [friendly_times] => 7pm-9pm
            [friendly_days] => Wednesdays
            [slug] => posted
            [id] => 286
            [home_page_image] => 
            [short_description] => Exploring post-rock, electro-acoustic experimentalism  and other sonic offroads.
            [permalink] => https://rtrfm.com.au/shows/posted/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [9] => Array
        (
            [show] => Critical Mass
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 21:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513170000
            [friendly_times] => 9pm-11pm
            [friendly_days] => Wednesdays
            [slug] => criticalmass
            [id] => 287
            [home_page_image] => 
            [short_description] => Death, Black, Power, Thrash, Grind, Speed, Extreme and more – everything Metal in one brutal blow.
            [permalink] => https://rtrfm.com.au/shows/criticalmass/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

    [10] => Array
        (
            [show] => Behind The Mirror
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-15 23:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513177200
            [friendly_times] => 11pm-1am
            [friendly_days] => Wednesdays
            [slug] => behindthemirror
            [id] => 288
            [home_page_image] => 
            [short_description] => Dark ambient, doom and experimental metal – music from the edges of sanity.




            [permalink] => https://rtrfm.com.au/shows/behindthemirror/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Wednesday
        )

)
$tomorrow_show_data is: Array
(
    [0] => Array
        (
            [show] => Up Late
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-13 01:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513184400
            [friendly_times] => 1am-4am
            [friendly_days] => Mondays - Fridays
            [slug] => uplate
            [id] => 281
            [home_page_image] => 
            [short_description] => A diverse range of tunes to keep you kicking into the night.
            [permalink] => https://rtrfm.com.au/shows/uplate/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Thursday
        )

    [1] => Array
        (
            [show] => Snooze Button
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-13 04:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513195200
            [friendly_times] => 4am-6am
            [friendly_days] => Saturdays - Fridays
            [slug] => snoozebutton
            [id] => 282
            [home_page_image] => 
            [short_description] => An eclectic music mix for early risers and night owls.


            [permalink] => https://rtrfm.com.au/shows/snoozebutton/
            [gridDayOfWeek] => Wednesday
            [realDayOfWeek] => Thursday
        )

    [2] => Array
        (
            [show] => Breakfast with Caitlin
            [sort_date_time] => DateTime Object
                (
                    [date] => 2016-08-04 06:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513202400
            [friendly_times] => 6am-9am
            [friendly_days] => Weekdays
            [slug] => breakfast
            [id] => 48
            [home_page_image] => 
            [short_description] => Start the morning right as Caitlin Nienaber chats to a host of guests from here and abroad.
            [permalink] => https://rtrfm.com.au/shows/breakfast/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [3] => Array
        (
            [show] => The Mag
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-07-06 09:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513213200
            [friendly_times] => 9am
            [friendly_days] => Mondays-Thursdays
            [slug] => mag
            [id] => 65
            [home_page_image] => 
            [short_description] => Tackling news and current affairs in an informative and informed manner.
            [permalink] => https://rtrfm.com.au/shows/mag/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [4] => Array
        (
            [show] => Moorditj Mag
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-07-06 11:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513220400
            [friendly_times] => 11am -12pm
            [friendly_days] => Thursdays
            [slug] => moorditjmag
            [id] => 39963
            [home_page_image] => 40204
            [short_description] => Our weekly look at Indigenous issues, culture, art and music. 
            [permalink] => https://rtrfm.com.au/shows/moorditjmag/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [5] => Array
        (
            [show] => Out to Lunch
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-16 12:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513224000
            [friendly_times] => 12pm-3pm
            [friendly_days] => Weekdays
            [slug] => otl
            [id] => 66
            [home_page_image] => 
            [short_description] => Your new release feast, showcasing all the latest sounds from indie pop to out there experimentalism.
            [permalink] => https://rtrfm.com.au/shows/otl/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [6] => Array
        (
            [show] => Full Frequency
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-16 15:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513234800
            [friendly_times] => 3pm-5pm
            [friendly_days] => Weekdays
            [slug] => fullfrequency
            [id] => 60
            [home_page_image] => 
            [short_description] => The latest in all styles of club and electronica, mixing it up with local and international reviews - your news forum for clubbing in Perth!
            [permalink] => https://rtrfm.com.au/shows/fullfrequency/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [7] => Array
        (
            [show] => Drivetime
            [sort_date_time] => DateTime Object
                (
                    [date] => 2015-04-16 17:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513242000
            [friendly_times] => 5pm-7pm
            [friendly_days] => Weekdays
            [slug] => drivetime
            [id] => 67
            [home_page_image] => 
            [short_description] => A diverse mix of new tunes and classics – experience a different drive home.
            [permalink] => https://rtrfm.com.au/shows/drivetime/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [8] => Array
        (
            [show] => Woodstock Rock
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-06 19:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513249200
            [friendly_times] => 7pm-9pm
            [friendly_days] => Thursdays
            [slug] => woodstock
            [id] => 290
            [home_page_image] => 
            [short_description] => Psych, prog and protest – underground music from the mid 60s to the mid 70s.
            [permalink] => https://rtrfm.com.au/shows/woodstock/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [9] => Array
        (
            [show] => Burn The Airwaves
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-06 21:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513256400
            [friendly_times] => 9pm-11pm
            [friendly_days] => Thursdays
            [slug] => burntheairwaves
            [id] => 291
            [home_page_image] => 
            [short_description] => Your fix of short, fast, loud punk and hardcore sounds, both new and from the vault.
            [permalink] => https://rtrfm.com.au/shows/burntheairwaves/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

    [10] => Array
        (
            [show] => Midnight Special
            [sort_date_time] => DateTime Object
                (
                    [date] => 2017-04-06 23:00:00.000000
                    [timezone_type] => 1
                    [timezone] => +08:00
                )

            [start_stamp] => 1513263600
            [friendly_times] => 11-1am
            [friendly_days] => Thursdays
            [slug] => midnightspecial
            [id] => 34758
            [home_page_image] => 
            [short_description] => Midnight Special is a late night chat show with a different talented host each week
            [permalink] => https://rtrfm.com.au/shows/midnightspecial/
            [gridDayOfWeek] => Thursday
            [realDayOfWeek] => Thursday
        )

)
Comparing start_stamp with value of 1513011600 against 1513109867 (less than)
Comparing start_stamp with value of 1513022400 against 1513109867 (less than)
Comparing start_stamp with value of 1513029600 against 1513109867 (less than)
Comparing start_stamp with value of 1513040400 against 1513109867 (less than)
Comparing start_stamp with value of 1513047600 against 1513109867 (less than)
Comparing start_stamp with value of 1513051200 against 1513109867 (less than)
Comparing start_stamp with value of 1513062000 against 1513109867 (less than)
Comparing start_stamp with value of 1513069200 against 1513109867 (less than)
Comparing start_stamp with value of 1513076400 against 1513109867 (less than)
Comparing start_stamp with value of 1513083600 against 1513109867 (less than)
Comparing start_stamp with value of 1513090800 against 1513109867 (less than)
Comparing start_stamp with value of 1513098000 against 1513109867 (less than)
Comparing start_stamp with value of 1513108800 against 1513109867 (less than)
Comparing start_stamp with value of 1513116000 against 1513109867 (greater than)
Comparing start_stamp with value of 1513126800 against 1513109867 (greater than)
Comparing start_stamp with value of 1513134000 against 1513109867 (greater than)
Comparing start_stamp with value of 1513137600 against 1513109867 (greater than)
Comparing start_stamp with value of 1513148400 against 1513109867 (greater than)
Comparing start_stamp with value of 1513155600 against 1513109867 (greater than)
Comparing start_stamp with value of 1513162800 against 1513109867 (greater than)
Comparing start_stamp with value of 1513170000 against 1513109867 (greater than)
Comparing start_stamp with value of 1513177200 against 1513109867 (greater than)
Comparing start_stamp with value of 1513184400 against 1513109867 (greater than)
Comparing start_stamp with value of 1513195200 against 1513109867 (greater than)
Comparing start_stamp with value of 1513202400 against 1513109867 (greater than)
Comparing start_stamp with value of 1513213200 against 1513109867 (greater than)
Comparing start_stamp with value of 1513220400 against 1513109867 (greater than)
Comparing start_stamp with value of 1513224000 against 1513109867 (greater than)
Comparing start_stamp with value of 1513234800 against 1513109867 (greater than)
Comparing start_stamp with value of 1513242000 against 1513109867 (greater than)
Comparing start_stamp with value of 1513249200 against 1513109867 (greater than)
Comparing start_stamp with value of 1513256400 against 1513109867 (greater than)
Comparing start_stamp with value of 1513263600 against 1513109867 (greater than)
count($shows_already_started) is 13
$current_show_index is 12
$current_show is Array
(
    [show] => Snooze Button
    [sort_date_time] => DateTime Object
        (
            [date] => 2017-04-12 04:00:00.000000
            [timezone_type] => 1
            [timezone] => +08:00
        )

    [start_stamp] => 1513108800
    [friendly_times] => 4am-6am
    [friendly_days] => Saturdays - Fridays
    [slug] => snoozebutton
    [id] => 282
    [home_page_image] => 
    [short_description] => An eclectic music mix for early risers and night owls.


    [permalink] => https://rtrfm.com.au/shows/snoozebutton/
    [gridDayOfWeek] => Tuesday
    [realDayOfWeek] => Wednesday
)
$last_show is Array
(
    [show] => Up Late
    [sort_date_time] => DateTime Object
        (
            [date] => 2017-04-12 01:00:00.000000
            [timezone_type] => 1
            [timezone] => +08:00
        )

    [start_stamp] => 1513098000
    [friendly_times] => 1am-4am
    [friendly_days] => Mondays - Fridays
    [slug] => uplate
    [id] => 281
    [home_page_image] => 
    [short_description] => A diverse range of tunes to keep you kicking into the night.
    [permalink] => https://rtrfm.com.au/shows/uplate/
    [gridDayOfWeek] => Tuesday
    [realDayOfWeek] => Wednesday
)
$show_before_last is Array
(
    [show] => Bass Check
    [sort_date_time] => DateTime Object
        (
            [date] => 2015-04-14 23:00:00.000000
            [timezone_type] => 1
            [timezone] => +08:00
        )

    [start_stamp] => 1513090800
    [friendly_times] => 11pm-1am
    [friendly_days] => Tuesdays
    [slug] => basscheck
    [id] => 285
    [home_page_image] => 
    [short_description] => Specialising in low-end electronic music, from Trip-Hop to Dubstep and the outer reaches of sound.
    [permalink] => https://rtrfm.com.au/shows/basscheck/
    [gridDayOfWeek] => Tuesday
    [realDayOfWeek] => Tuesday
)
$next_show is Array
(
    [show] => Breakfast with Caitlin
    [sort_date_time] => DateTime Object
        (
            [date] => 2016-08-03 06:00:00.000000
            [timezone_type] => 1
            [timezone] => +08:00
        )

    [start_stamp] => 1513116000
    [friendly_times] => 6am-9am
    [friendly_days] => Weekdays
    [slug] => breakfast
    [id] => 48
    [home_page_image] => 
    [short_description] => Start the morning right as Caitlin Nienaber chats to a host of guests from here and abroad.
    [permalink] => https://rtrfm.com.au/shows/breakfast/
    [gridDayOfWeek] => Wednesday
    [realDayOfWeek] => Wednesday
)
$show_after_next is Array
(
    [show] => The Mag
    [sort_date_time] => DateTime Object
        (
            [date] => 2017-07-05 09:00:00.000000
            [timezone_type] => 1
            [timezone] => +08:00
        )

    [start_stamp] => 1513126800
    [friendly_times] => 9am
    [friendly_days] => Mondays-Thursdays
    [slug] => mag
    [id] => 65
    [home_page_image] => 
    [short_description] => Tackling news and current affairs in an informative and informed manner.
    [permalink] => https://rtrfm.com.au/shows/mag/
    [gridDayOfWeek] => Wednesday
    [realDayOfWeek] => Wednesday
)
It's before six so setting $perth_day to previous day
$perth_day is now Tuesday