Ruby/Date/today

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

With the today class method, you can create a date based on today"s date:

require "date"
 
today = Date.today
puts today.to_s