Epoch Incantations


Calculate the offset required to convert from Mac OS X Core Data timestamps to Unix timestamps.

date -uj 010100002001 +%s

Better than just saying “add 978307200” or “add 11323 * 86400”.