'+'\n'+
' '+occurrenceNameHtml+'\n'+
' '+locHtml+'\n'+
'
'+'\n'+
' '+'\n'+
' '+'\n'+
' '+occurrence.datetime_output+'\n'+
' '+'\n'+
'
'+'\n'+
'
'+'\n'
}
return returnStr
}
function getOccurrences() {
var occurrences = {}, temp, locStr
temp = {
"id":21869970,
"datetime_start":"20250227T133000",
"datetime_end":"20250127T160000",
"has_end_time":1,
"datetime_output": "1:30pm - 4:00pm",
"date_start":"20250227",
"date_end":"20250127",
"time_start":"13:30:00",
"time_end":"16:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Keene Theater",
"occurrence_name":"Live Drama Performance Go To Event",
"iCal_href": "/event/122946-21869970/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250227T183000Z/20250127T210000Z&details=&location=Keene Theater&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871588,
"datetime_start":"20250306T160000",
"datetime_end":"20250306T170000",
"has_end_time":1,
"datetime_output": "4:00pm - 5:00pm",
"date_start":"20250306",
"date_end":"20250306",
"time_start":"16:00:00",
"time_end":"17:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Living Room",
"occurrence_name":"Book Fair",
"iCal_href": "/event/122946-21871588/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250306T210000Z/20250306T220000Z&details=&location=Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871589,
"datetime_start":"20250308T120000",
"datetime_end":"20250308T130000",
"has_end_time":1,
"datetime_output": "12:00pm - 1:00pm",
"date_start":"20250308",
"date_end":"20250308",
"time_start":"12:00:00",
"time_end":"13:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Meet at 12pm in the Living Room!",
"occurrence_name":"Explore the Natural History Museum!",
"iCal_href": "/event/122946-21871589/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250308T170000Z/20250308T180000Z&details=&location=Meet at 12pm in the Living Room!&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871590,
"datetime_start":"20250311T190000",
"datetime_end":"20250311T210000",
"has_end_time":1,
"datetime_output": "7:00pm - 9:00pm",
"date_start":"20250311",
"date_end":"20250311",
"time_start":"19:00:00",
"time_end":"21:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"LSWA Art Studio",
"occurrence_name":"Spring into Zines!",
"iCal_href": "/event/122946-21871590/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250311T230000Z/20250312T010000Z&details=&location=LSWA Art Studio&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871591,
"datetime_start":"20250312T090000",
"datetime_end":"20250312T110000",
"has_end_time":1,
"datetime_output": "9:00am - 11:00am",
"date_start":"20250312",
"date_end":"20250312",
"time_start":"09:00:00",
"time_end":"11:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Across from the CC",
"occurrence_name":"Hot Drinks for your day!",
"iCal_href": "/event/122946-21871591/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250312T130000Z/20250312T150000Z&details=&location=Across from the CC&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872537,
"datetime_start":"20250313T163000",
"datetime_end":"20250313T170000",
"has_end_time":1,
"datetime_output": "4:30pm - 5:00pm",
"date_start":"20250313",
"date_end":"20250313",
"time_start":"16:30:00",
"time_end":"17:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Across from CC",
"occurrence_name":"Decorate your own Shamrock Cookie",
"iCal_href": "/event/122946-21872537/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250313T203000Z/20250313T210000Z&details=&location=Across from CC&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871592,
"datetime_start":"20250313T210000",
"datetime_end":"20250313T220000",
"has_end_time":1,
"datetime_output": "9:00pm - 10:00pm",
"date_start":"20250313",
"date_end":"20250313",
"time_start":"21:00:00",
"time_end":"22:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Alice Lloyd Living Room",
"occurrence_name":"Obscure Card Game Night",
"iCal_href": "/event/122946-21871592/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250314T010000Z/20250314T020000Z&details=&location=Alice Lloyd Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872549,
"datetime_start":"20250314T183000",
"datetime_end":"20250314T200000",
"has_end_time":1,
"datetime_output": "6:30pm - 8:00pm",
"date_start":"20250314",
"date_end":"20250314",
"time_start":"18:30:00",
"time_end":"20:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Room 2060",
"occurrence_name":"Basketball Season Door Decs with RA Danielle and RA Caitlyn!",
"iCal_href": "/event/122946-21872549/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250314T223000Z/20250315T000000Z&details=&location=Room 2060&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871593,
"datetime_start":"20250315T190000",
"datetime_end":"20250315T200000",
"has_end_time":1,
"datetime_output": "7:00pm - 8:00pm",
"date_start":"20250315",
"date_end":"20250315",
"time_start":"19:00:00",
"time_end":"20:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Alice Lloyd LIving Room",
"occurrence_name":"Game Night!",
"iCal_href": "/event/122946-21871593/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250315T230000Z/20250316T000000Z&details=&location=Alice Lloyd LIving Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872550,
"datetime_start":"20250317T210000",
"datetime_end":"20250317T220000",
"has_end_time":1,
"datetime_output": "9:00pm - 10:00pm",
"date_start":"20250317",
"date_end":"20250317",
"time_start":"21:00:00",
"time_end":"22:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Living Room",
"occurrence_name":"Gratefully Lucky - Write down some lucky notes and grab a cookie!",
"iCal_href": "/event/122946-21872550/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250318T010000Z/20250318T020000Z&details=&location=Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871594,
"datetime_start":"20250319T170000",
"datetime_end":"20250319T190000",
"has_end_time":1,
"datetime_output": "5:00pm - 7:00pm",
"date_start":"20250319",
"date_end":"20250319",
"time_start":"17:00:00",
"time_end":"19:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Meet on 2nd Floor of Alice Lloyd at 5pm, walk to the Arboretum together!",
"occurrence_name":"Join Us for an Arb Walk!",
"iCal_href": "/event/122946-21871594/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250319T210000Z/20250319T230000Z&details=&location=Meet on 2nd Floor of Alice Lloyd at 5pm, walk to the Arboretum together!&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871595,
"datetime_start":"20250319T190000",
"datetime_end":"20250319T210000",
"has_end_time":1,
"datetime_output": "7:00pm - 9:00pm",
"date_start":"20250319",
"date_end":"20250319",
"time_start":"19:00:00",
"time_end":"21:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Alice Lloyd Living Room",
"occurrence_name":"NCAAW March Madness Opener Watch Party",
"iCal_href": "/event/122946-21871595/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250319T230000Z/20250320T010000Z&details=&location=Alice Lloyd Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872551,
"datetime_start":"20250320T180000",
"datetime_end":"20250320T190000",
"has_end_time":1,
"datetime_output": "6:00pm - 7:00pm",
"date_start":"20250320",
"date_end":"20250320",
"time_start":"18:00:00",
"time_end":"19:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Room 2060",
"occurrence_name":"Midterm Stress Mitigation",
"iCal_href": "/event/122946-21872551/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250320T220000Z/20250320T230000Z&details=&location=Room 2060&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21871596,
"datetime_start":"20250320T190000",
"datetime_end":"20250320T210000",
"has_end_time":1,
"datetime_output": "7:00pm - 9:00pm",
"date_start":"20250320",
"date_end":"20250320",
"time_start":"19:00:00",
"time_end":"21:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Living Room",
"occurrence_name":"It's Game Time!",
"iCal_href": "/event/122946-21871596/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250320T230000Z/20250321T010000Z&details=&location=Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872552,
"datetime_start":"20250322T210000",
"datetime_end":"20250322T220000",
"has_end_time":1,
"datetime_output": "9:00pm - 10:00pm",
"date_start":"20250322",
"date_end":"20250322",
"time_start":"21:00:00",
"time_end":"22:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Vicky Barner Multicultural Lounge - Alice Lloyd",
"occurrence_name":"Alice Lloyd - Karaoke\/Rap Battle",
"iCal_href": "/event/122946-21872552/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250323T010000Z/20250323T020000Z&details=&location=Vicky Barner Multicultural Lounge - Alice Lloyd&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872553,
"datetime_start":"20250325T180000",
"datetime_end":"20250326T190000",
"has_end_time":1,
"datetime_output": "6:00pm - 7:00pm",
"date_start":"20250325",
"date_end":"20250326",
"time_start":"18:00:00",
"time_end":"19:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Living Room",
"occurrence_name":"Make Suncatchers With Us! Perfect Time of The Year!",
"iCal_href": "/event/122946-21872553/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250325T220000Z/20250326T230000Z&details=&location=Living Room&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872554,
"datetime_start":"20250327T120000",
"datetime_end":"20250327T130000",
"has_end_time":1,
"datetime_output": "12:00pm - 1:00pm",
"date_start":"20250327",
"date_end":"20250327",
"time_start":"12:00:00",
"time_end":"13:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Meet in 2nd Floor Lobby at 11:45am - Go to library as a group!",
"occurrence_name":"Shapiro Video Game Library Tour",
"iCal_href": "/event/122946-21872554/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250327T160000Z/20250327T170000Z&details=&location=Meet in 2nd Floor Lobby at 11:45am - Go to library as a group!&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872555,
"datetime_start":"20250328T150000",
"datetime_end":"20250328T160000",
"has_end_time":1,
"datetime_output": "3:00pm - 4:00pm",
"date_start":"20250328",
"date_end":"20250328",
"time_start":"15:00:00",
"time_end":"16:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Meeting at the CC at 3pm, walking to the Union",
"occurrence_name":"Join RAs to go to a Clothing Thrift Pop-Up!",
"iCal_href": "/event/122946-21872555/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250328T190000Z/20250328T200000Z&details=&location=Meeting at the CC at 3pm, walking to the Union&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
temp = {
"id":21872556,
"datetime_start":"20250328T190000",
"datetime_end":"20250328T200000",
"has_end_time":1,
"datetime_output": "7:00pm - 8:00pm",
"date_start":"20250328",
"date_end":"20250328",
"time_start":"19:00:00",
"time_end":"20:00:00",
"time_zone":"America\/Detroit",
"building_id":"",
"building_name":"",
"campus_maps_id":"",
"campus_maps_name": null,
"room":"",
"notes":"",
"location_name":"Alice Lloyd Rm 2060",
"occurrence_name":"Trivia Night!",
"iCal_href": "/event/122946-21872556/feed/ical",
"googleCal_href": "http://www.google.com/calendar/event?action=TEMPLATE&text=Alice%20Lloyd%20%282024-2025%29%20%28Housing%29&dates=20250328T230000Z/20250329T000000Z&details=&location=Alice Lloyd Rm 2060&trp=false&sprop=&sprop=name:"
}
if (!occurrences[temp.date_start]) {
occurrences[temp.date_start] = {}
}
if (temp.location_name !== null) {
locStr = temp.location_name+(temp.room !== '' ? ' - '+temp.room : '')
} else {
locStr = 'Unspecified Location'
}
if (!occurrences[temp.date_start][locStr]) {
occurrences[temp.date_start][locStr] = []
}
occurrences[temp.date_start][locStr].push(temp)
return occurrences
}
function getDateStr(date) {
let dateObj = new Date(date)
var month = (dateObj.getMonth()+1) >= 10 ? (dateObj.getMonth()+1).toString() : '0'+(dateObj.getMonth()+1)
var day = dateObj.getDate() >= 10 ? dateObj.getDate().toString() : '0'+dateObj.getDate()
return date.getFullYear()+month+day
}
function getFormatDate(dateStr){
return dateStr.substring(0,4) + '/' + dateStr.substring(4, 6) + '/' + dateStr.substring(6, 8)
}
})