This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a litle tech demo to demonstrate using clojureCLR in a CLR web app. | |
* | |
* A custom IHttpHandler (ClojureHttpHandler) handles invocation of clojure code, | |
* and a custom IRouteHandler (ClojureRouteHandler) routes requests to the HttpHandler. | |
* | |
* See comments in the code for further detail. | |
* | |
* Cheers, zdam | |
* http://zimpler.com/blog/clojureclr-in-an-asp-net-mvc-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+(NSPredicate *)dateMatcher:(NSDate *)date forAttribute:(NSString *)attributeName{ | |
//First set the unit flags you want automatically put into your date from an NSDate object | |
unsigned startUnitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit; | |
//now create an NSCalendar object | |