Created
February 8, 2012 08:08
-
-
Save pjaspers/1766661 to your computer and use it in GitHub Desktop.
Core Data Date type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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