  call moment() with one of the supported input types.
 */
 public struct Moment: Comparable {
+    private let minuteInSeconds = 60
+    private let dayInSeconds = 1440
+    private let weekInSeconds = 10080
+    private let monthInSeconds = 312480
+    private let yearInSeconds = 114055200
+
     public let date: NSDate
     public let timeZone: NSTimeZone
     public let locale: NSLocale

        return date.timeIntervalSince1970
    }

    // Private methods

    func convert(value: Double, _ unit: TimeUnit) -> Double {

            return value * 31536000 // 365 days
        }
    }
    
    private func stringFromFormat(format: String, withValue value: Int) -> String {
        
        let localeFormat = String(format: format, getLocaleFormatUnderscoresWithValue(Double(value)))
        
        return String(format: NSDateTimeAgoLocalizedStrings(localeFormat), value)
    }
    
    
    private func NSDateTimeAgoLocalizedStrings(key: String) -> String {
        guard let resourcePath = NSBundle.mainBundle().resourcePath else {
            return ""
        }
        
        let path = NSURL(fileURLWithPath:resourcePath).URLByAppendingPathComponent("MomentFromNow.bundle")
        guard let bundle = NSBundle(URL: path) else {
            return ""
        }
        
        return NSLocalizedString(key, tableName: "NSDateTimeAgo", bundle: bundle, comment: "")
    }
    
    private func getLocaleFormatUnderscoresWithValue(value: Double) -> String {
        guard let localeCode = NSLocale.preferredLanguages().first else {
            return ""
        }
        
        if localeCode == "ru" {
            let XY = Int(floor(value)) % 100
            let Y = Int(floor(value)) % 10
            
            if Y == 0 || Y > 4 || (XY > 10 && XY < 15) {
                return ""
            }
            
            if Y > 1 && Y < 5 && (XY < 10 || XY > 20) {
                return "_"
            }
            
            if Y == 1 && XY != 11 {
                return "__"
            }
        }
        
        return ""
    }
}

extension Moment: CustomStringConvertible {
