For the heck of it - here's the answer in perl code (using stock vanilla perl):
first getting the difference between the 2 epochs:
Code:
#!/usr/bin/perl -w
use strict;
use Time::Local;
# timelocal() coverts human readable dates into the sum of the date in seconds
# though it expects the date to be formatted as SECONDS,MINUTES,HOURS,DAY,MONTH,YEAR
my $unixEpoch=timelocal(0,0,0,1,1,1970); #00:00 1st January 1970
my $osxEpoch=timelocal(0,0,0,1,1,2001); #00:00 1st January 2001
my $epochOffset=($osxEpoch - $unixEpoch);
print $epochOffset,"\n";
The above ouputs "978307200", the 31 year difference between the 2 epoch times in seconds, which I can use to get a human readable date from the stored Notes creation date:
Code:
#!/usr/bin/perl -w
use strict;
use diagnostics-verbose;
my $cocoaDate=308718186;
my $unixOffset=978307200;
print scalar localtime($cocoaDate+$unixOffset);
the above script outputs the following date "Thu Oct 14 12:03:06 2010" which matches the date shown in the Notes interface on iPad.
So right about now I'm feeling pretty happy as I expected this to be much more tortuous to solve.
It's also worth stressing that following the steps outlined in my first post gives you access to all the data stored in your ipad without having to jailbreak it, and without forking out wads of cash for apps from companies trying to cash in on iPad data recovery issues caused by Apple's hermetic approach.
Set your data free!