[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

modifying the hour in a datetime object already created

Josselin

9/14/2006 4:31:00 PM

In my prog, I create a datetime object

d1s = DateTime.civil(2006,6,5,16,00,00)

then later on, I need to create another datetime from this one by
adding 1 day and changing the hour to 10:00:00

I can do easily

d1e = d1s + 1

but how can I modify the hour, which stays at 16:00:00 ?

thanks for your help

joss

1 Answer

Ara.T.Howard

9/14/2006 5:03:00 PM

0