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
-(NSMutableDictionary*)dateDictionary | |
{ | |
NSCalendar * chineseCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; | |
NSUInteger unitFlags = NSHourCalendarUnit | NSMinuteCalendarUnit | | |
NSSecondCalendarUnit | NSDayCalendarUnit | | |
NSMonthCalendarUnit | NSYearCalendarUnit; | |
NSDateComponents * cps = [chineseCalendar components:unitFlags fromDate:self]; | |
NSUInteger hour = [cps hour]; | |
NSUInteger minute = [cps minute]; |
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
// derived from https://on4wp7.codeplex.com/SourceControl/changeset/view/21483#353936 | |
#ifndef coordinate_convert_h | |
#define coordinate_convert_h | |
#include <math.h> | |
const double pi = 3.14159265358979324; |