Skip to content

Instantly share code, notes, and snippets.

@SeanROlszewski
Created May 28, 2018 00:53
Show Gist options
  • Save SeanROlszewski/094a0c12cef586344726481fb9aa9804 to your computer and use it in GitHub Desktop.
Save SeanROlszewski/094a0c12cef586344726481fb9aa9804 to your computer and use it in GitHub Desktop.
if (indexPath.row != 2) {
let session = sessionsBySection[indexPath.section][indexPath.row]
let timeslot = agenda.days[dayIndex].timeslots[indexPath.section]
let startTime = DateFormatter.localizedString(from: timeslot.startTime.date!,
dateStyle: .none,
timeStyle: .short)
let endTime = DateFormatter.localizedString(from: timeslot.endTime.date!,
dateStyle: .none,
timeStyle: .short)
let duration = "\(startTime) - \(endTime)"
return duration
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment