Skip to content

Instantly share code, notes, and snippets.

@christianrojas
Created December 28, 2009 22:12
Show Gist options
  • Save christianrojas/264989 to your computer and use it in GitHub Desktop.
Save christianrojas/264989 to your computer and use it in GitHub Desktop.
require "time"
require "date"
now = DateTime.now
day = now.day
month = now.month
year = now.year
hour = now.hour
min = now.min
sec = now.sec
zone = now.zone
puts day
puts month
puts year
puts (hour-12)
puts min
puts sec
puts zone
puts t = Time.local(year,month,day)
puts t.monday? # No reconoce la funcion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment