Skip to content

Instantly share code, notes, and snippets.

@bensie
Created June 1, 2012 21:22
Show Gist options
  • Select an option

  • Save bensie/2855206 to your computer and use it in GitHub Desktop.

Select an option

Save bensie/2855206 to your computer and use it in GitHub Desktop.
Parse iso8601 time in RubyMotion
class Time
def self.iso8601(time)
formatter = NSDateFormatter.alloc.init
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'"
formatter.dateFromString time
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment