From 0922cf13c3ae24bf64652a080cf93613ebf12b71 Mon Sep 17 00:00:00 2001 From: Ankur Patel Date: Tue, 29 Jul 2014 17:17:52 -0400 Subject: [PATCH] Adding accessors --- Cent/Cent/Date.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cent/Cent/Date.swift b/Cent/Cent/Date.swift index 880da3d6..6ccc11a8 100644 --- a/Cent/Cent/Date.swift +++ b/Cent/Cent/Date.swift @@ -16,7 +16,7 @@ extension NSDate { /// :param month /// :param day /// :return Date - class func from(#year: Int, month: Int, day: Int) -> NSDate { + public class func from(#year: Int, month: Int, day: Int) -> NSDate { var c = NSDateComponents() c.year = year c.month = month @@ -32,7 +32,7 @@ extension NSDate { /// :param dateStr String version of the date /// :param format By default it is year month day /// :return Date - class func parse(dateStr: String, format: String = "yyyy-MM-dd") -> NSDate { + public class func parse(dateStr: String, format: String = "yyyy-MM-dd") -> NSDate { var dateFmt = NSDateFormatter() dateFmt.timeZone = NSTimeZone.defaultTimeZone() dateFmt.dateFormat = format @@ -40,4 +40,4 @@ extension NSDate { } } -typealias Date = NSDate \ No newline at end of file +typealias Date = NSDate