Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save justinanderson/5687128 to your computer and use it in GitHub Desktop.

Select an option

Save justinanderson/5687128 to your computer and use it in GitHub Desktop.
Sample of how m.mit.edu represents MIT Libraries' locations and hours internally.
{
"name":"Barker Engineering Library",
"location":"10-500",
"phone":"6172530968",
"terms":[
{
"name":"Spring",
"dates":{
"start":"2013-02-05",
"end":"2013-05-24"
},
"closings":[
{
"dates":{
"start":"2013-04-06",
"end":"2013-04-06"
},
"reason":""
}
],
"exceptions":[
{
"dates":{
"start":"2013-02-18"
},
"reason":"Presidents' Day",
"hours":{
"start":"12:00:00",
"end":"00:00:00"
}
},
{
"dates":{
"start":"2013-04-15"
},
"reason":"Patriots' Day",
"hours":{
"start":"12:00:00",
"end":"00:00:00"
}
},
{
"dates":{
"start":"2013-05-24"
},
"reason":"Last Day of Term",
"hours":{
"start":"09:00:00",
"end":"18:00:00"
}
}
],
"regular":[
{
"days":"MTWR",
"hours":{
"start":"09:00:00",
"end":"00:00:00"
},
"note":""
},
{
"days":"F",
"hours":{
"start":"09:00:00",
"end":"18:00:00"
},
"note":""
},
{
"days":"S",
"hours":{
"start":"12:00:00",
"end":"20:00:00"
},
"note":""
},
{
"days":"U",
"hours":{
"start":"12:00:00",
"end":"00:00:00"
},
"note":""
}
]
},
{
"name":"Spring Vacation",
"dates":{
"start":"2013-03-23",
"end":"2013-03-30"
},
"closings":[
],
"exceptions":[
],
"regular":[
{
"days":"MTWRF",
"hours":{
"start":"09:00:00",
"end":"18:00:00"
},
"note":""
},
{
"days":"SU",
"hours":{
"start":"13:00:00",
"end":"18:00:00"
},
"note":""
}
]
},
{
"name":"Summer",
"dates":{
"start":"2013-05-25",
"end":"2013-08-27"
},
"closings":[
{
"dates":{
"start":"2013-05-25",
"end":"2013-05-27"
},
"reason":"Memorial Day Weekend"
},
{
"dates":{
"start":"2013-06-07",
"end":"2013-06-07"
},
"reason":"Commencement Day"
},
{
"dates":{
"start":"2013-07-04",
"end":"2013-07-04"
},
"reason":"Independence Day"
},
{
"dates":{
"start":"2013-09-02",
"end":"2013-09-02"
},
"reason":"Labor Day"
}
],
"exceptions":[
],
"regular":[
{
"days":"MTWRF",
"hours":{
"start":"09:00:00",
"end":"18:00:00"
},
"note":""
},
{
"days":"SU",
"hours":{
"start":"13:00:00",
"end":"18:00:00"
},
"note":""
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment