πŸ“Š Ruby
Q. What does the strftime method do in Ruby when applied to a Time object?
  • (A) Returns the year of the Time object
  • (B) Formats a Time object into a string according to the specified format
  • (C) Returns the day of the week of the Time object
  • (D) Returns the year of the Time object
πŸ’¬ Discuss
βœ… Correct Answer: (B) Formats a Time object into a string according to the specified format

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
169
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate