SOZOJulianDateConverter 0.1.0

SOZOJulianDateConverter 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total3
Week0
Month0

Installs

Apps1
powered by Segment

GitHub

Stars3
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files10
LOCLines of Code 254


  • By
  • sozorogami

Converts dates in the Julian calendar into NSDates for use in other calendrical systems.

Sample

// Convert Julian date January 25th, 1436 to an NSDate
NSDate *date = [SOZOJulianDateConverter dateFromJulianYear:1436 month:1 day:25];

// Represent an NSDate as a day on the Julian calendar
SOZOJulianDateComponents components = [SOZOJulianDateConverter componentsFromDate:date];
NSLog(@"%d, %d, %d", components.year, components.month, components.day); // Logs 1436, 1, 25