Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ruby time string formating with strftime

  • strftime
now = Time.now

puts now.utc.strftime("%Y-%m-%d %H:%M:%S")