How do I print out a ruby time using the date-time format:
2009-02-17T05:00-07:00
Like Time.now.to_datetime_s
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Time#iso8601 (or Time#xmlschema) produces output in this format. (You may have to
require 'time'beforehand).