[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date plus integer


Il 17/04/24 17:33, Benoît Minisini ha scritto:
I just tried with Gambas 3.18.4:

$ gbx3 -e "Now + 1"
2492523,64755762

So please send the code that would return a date!

--
Benoît Minisini.


Hi Benoit,

sorry, he had passed me a wrong code, he meant this:

Public Sub Main()

  Dim dDate As Date

  dDate = Now()
  Print dDate

  dDate += 1

  Print dDate

End

In fact the result of dDate + 1 differs depending on the version:
04/19/2024 09:24:49 on 3.18.04
and 2492524,30947895 on 3.19

Regards
Gianluigi


Follow-Ups:
Re: Date plus integerBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Date plus integerGianluigi <gradobag@xxxxxxxxxxx>
Re: Date plus integerBruce Steers <bsteers4@xxxxxxxxx>
Re: Date plus integerGianluigi <gradobag@xxxxxxxxxxx>
Re: Date plus integerBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>