ppear that will be a problem.
Thank you!
-George
On Sat, May 19, 2018 at 1:52 PM, Tobias Boege wrote:
> On Sat, 19 May 2018, George wrote:
> > > CDate uses UTC and, without the time information in the string, it
> would
> > store midnight. Format uses local time.
> >
>
I noticed a post from Benoît in another thread that this mailing list has
been deprecated, so I'm going to repost this in u...@lists.gambas-basic.org
On Sat, May 19, 2018 at 1:20 PM, George wrote:
> > CDate uses UTC and, without the time information in the string, it would
>
> CDate uses UTC and, without the time information in the string, it would
store midnight. Format uses local time.
That is definitely part of the issue. My local time is GMT-04, and here's
what I get when specifying the time in my test:
Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu
Test d
Sorry, I should have added that I'm on version 3.11.2
On Sat, May 19, 2018 at 9:27 AM, George wrote:
> I'm using the repository 'http://ppa.launchpad.net/
> gambas-team/gambas3/ubuntu'
>
> Is there something that's more up-to-date?
>
> On Sat, May 19
Result: Main.Main.9: Test date: 5/4/2018 Formatted: 05/04/18 ven
>
> Regards
> Gianluigi
>
> 2018-05-19 14:54 GMT+02:00 George :
>
> > When using the Format function to format a date, the date gets offset by
> 1
> > day. Here's an example:
> >
> >
When using the Format function to format a date, the date gets offset by 1
day. Here's an example:
Dim zTestDate As String
Dim zTestResult As String
zTestDate = "5/4/2018"
zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd")
Debug "Test date: " & zTestDate & " Formatted: " & zTestResu
ed on whether or not it was
zero. This solved my issue, but I wanted to report the bug. I'm
running version 2.22
-George
--
___
Gambas-user mailing list
Gambas-user@lists.
m in business. It took me a few tries to get
everything working again, but it's up and running, and I'm no longer
getting the error on the date calculation.
Thanks to you and Benoît for you help & quick replies.
-George
2010/12/4 Benoît Minisini :
>> >
>> > Gambas 2.19/64 Suse11.3 locale Hong Kong:
>> >
>> > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36)
>> > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37)
>> > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38)
>> > produces
>> > 13/02/07
>> > 28/02/07
>> > 13/02
I'd gone off onto other projects,
and am just revisiting this...
I am currently running version 2.22.0 and am still getting the error
described above. If the bug had been fixed in an earlier version, it
seems to have crept back in.
My Ubuntu version is currently 10.04 LTS (Lucid Lynx)
Thank
Benoît,
Thanks for the quick response. I had thought my Gambas was
up-to-date, but apparently the repository I was using is not current.
At least I'm aware of that now.
Thank you,
-George
2010/2/13 Benoît Minisini :
> The bug has been fixed in revision #2697.
>
> Regards,
&
I've run into a strange problem with the DateAdd function, when trying
to subtract from the current date by months.
I initially hit the problem with the following (values are hard-coded
for clarity):
DateAdd(cdate("2/13/2010"),gb.month,-37)
It seems that any combination of Date and Interval tha
12 matches
Mail list logo