Re: [Gambas-user] "Strange" results from Time( ) function ?

2013-10-11 Thread Jussi Lahtinen
I took a look into source code and I think this is because seconds are stored in memory as short. And this confirms I understand correctly: ? time(0,0,32766) 09.06.06 ? time(0,0,32767) <--- last good value for signed short 09.06.07 ? time(0,0,32768) 14.53.52 1. So, one simple correction is jus

Re: [Gambas-user] "Strange" results from Time( ) function ?

2013-10-09 Thread Jussi Lahtinen
Confirmed with latest revision (5870) @ Xubuntu 13.04 64 bit. Jussi On Fri, Sep 13, 2013 at 8:44 PM, Ru Vuott wrote: > Hello, > > I tried this code: > > > Public Sub Form_Open() > > Dim i As Integer > > For i = 1 To 24 > >Print Time(0, 0, 3600 * i), 3600 * i > > Next > > End

[Gambas-user] "Strange" results from Time( ) function ?

2013-09-13 Thread Ru Vuott
Hello, I tried this code: Public Sub Form_Open() Dim i As Integer For i = 1 To 24 Print Time(0, 0, 3600 * i), 3600 * i Next End and here its results : 01:00:003600 02:00:007200 03:00:0010800 04:00:0014400 05:00:0018000 06