[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Time: safe way to go to next day?
From:       Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date:       2003-10-21 7:19:48
[Download RAW message or body]

Hello,

nobu.nokada@softhome.net wrote:

>If you just want dates, what about date.rb?
>
>  require 'date'
>  today = Date.today
>  today.to_s		# => "2003-10-21"
>  (today+5).to_s	# => "2003-10-26"
>
>I've not tested it with DST though.
>
>  
>
but where is all this stuff documented?
find.rb, base64.rb, date.rb, the other day someone wanted to remove 
recursively a dir, and was given another one of those magic files... 
which doc did i miss? :O(

otherwise, yes it's probably what i want. unfortunately i now sit on a 
lot of code to convert :O(
if someone has a way with Time, it would simplify things for me...

thanks,

emmanuel



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic