Skip to content

Instantly share code, notes, and snippets.

@pjaspers
Created February 8, 2012 08:08
Show Gist options
  • Save pjaspers/1766661 to your computer and use it in GitHub Desktop.
Save pjaspers/1766661 to your computer and use it in GitHub Desktop.
Core Data Date type
# Returns a nicely formatted datestring instead of core data's weird datetype.
function cddate() {
ruby -e "puts Time.at(Time.gm("2001", "01", "01").to_i + $1)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment