Created
September 5, 2011 00:24
-
-
Save rafaelss/1193770 to your computer and use it in GitHub Desktop.
where is monday?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p290 :001 > Date.today | |
=> Sun, 04 Sep 2011 | |
ruby-1.9.2-p290 :002 > Date.tomorrow | |
=> Mon, 05 Sep 2011 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p290 :008 > Date.today | |
=> Sun, 04 Sep 2011 | |
ruby-1.9.2-p290 :009 > Date.tomorrow | |
=> Tue, 06 Sep 2011 |
puts, ta pulando um dia :)
setando a data para dia 5, o resultado é:
ruby-1.9.2-p290 :005 > Date.today
=> Mon, 05 Sep 2011
ruby-1.9.2-p290 :006 > Date.tomorrow
=> Wed, 07 Sep 2011
Dei uma pesquisa e vi que tem que configurar o TimeZone em application.rb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Isso q dá rodar o script 23h59