     }
 
     func isInSession(_ session: Session, _ currentTime: Int64) -> Bool {
-        if !session.isInPeriod(time: currentTime) {
+        if !session.isInPeriod(currentTime) {
             return false
         } else {
             return session.remaining(currentTime) > 0

        if sessions != nil {
            for session in sessions! {

                if !session.isInPeriod(time: time) {
                    continue
                }



import Foundation

protocol Copyable {
    init(instance: Self)
}

extension Copyable {
    func clone() -> Self {
        return Self.init(instance: self)
    }
}


class TimeTable: NSObject, Copyable {

    var sessions: [Session]?
    var exceptions: [Session]?
