Cocoa NSDate Calculator and Converter

This tool converts dates to cocoa dates (number of seconds since Jan 1, 2001). This is useful if you want to know a numeric value to expect from the

 -timeIntervalSinceReferenceDate

method of NSDate, or what to pass to

 - (id)initWithTimeIntervalSinceReferenceDate:(NSTimeInterval)seconds

Note that this assumes you’re in timezone +0 (GMT). If you care about such things, you’ll need to account for it in your source code. You should probably account for the user’s current time zone if you want the displayed time to match a value you get from here.

To use: Just type in a new value in any of the boxes and press enter or tab or click somewhere and it should just update.

Update: Now includes Windows FILETIME representation.

Date (YYYY/MM/DD) :
Time (HH:MM:SS) :
Cocoa timeSinceReferenceDate (seconds) :
FILETIME:

One thought on “Cocoa NSDate Calculator and Converter

  1. Pingback: Teknologeek.com » Cómo funciona el almacenamiento de datos de localización del iPhone

Leave a Reply