>>>>> "Samuel" == Samuel Kilchenmann <skilchen / swissonline.ch> writes: Samuel> here you are including hour, minute, second of the current time in the Samuel> difference. Samuel> either change that line to Samuel> $now[4] + 1, $now[3], 0, 0, 0); Err.... I should not work so late in evening ;-) Thanks a lot... When i compare the three codes, i really think Ruby rocks! -- Eric Jacoboni -- IUP NTIE Universitde Toulouse II.