Re: [Gambas-user] gb3: Format$

2011-06-28 Thread Benoît Minisini
> El 28/06/11 19:05, Benoît Minisini escribió: > >> Well. what I'm missing here? > >> > >> I got the same results with rev.3906: > >> Print Format$(Now, "hh:nn") > >> Print Format$(Now, "hh:nn AM/PM") > >> > >> > >> 18:36 > >> 06:36 > >> > >> Finally, shouldn't the last line show "AM" or

Re: [Gambas-user] gb3: Format$

2011-06-28 Thread EA7DFH
El 28/06/11 19:05, Benoît Minisini escribió: >> >> Well. what I'm missing here? >> >> I got the same results with rev.3906: >> >> Print Format$(Now, "hh:nn") >> Print Format$(Now, "hh:nn AM/PM") >> >> 18:36 >> 06:36 >> >> Finally, shouldn't the last line show "AM" or "PM" at the end? >> > >

Re: [Gambas-user] gb3: Format$

2011-06-28 Thread Benoît Minisini
> > Well. what I'm missing here? > > I got the same results with rev.3906: > > Print Format$(Now, "hh:nn") > Print Format$(Now, "hh:nn AM/PM") > > 18:36 > 06:36 > > Finally, shouldn't the last line show "AM" or "PM" at the end? > "AM" or "PM" are actually displayed only if your languag

Re: [Gambas-user] gb3: Format$

2011-06-28 Thread EA7DFH
El 26/06/11 23:37, Kevin Fishburne escribió: > On 06/26/2011 03:09 PM, Benoît Minisini wrote: I hope I'm really not so stupid that I'm missing something obvious. I'm not even drinking right now! >>> >>> Mmm... You're right, there's something nasty there. I'm currently >>> investigating...

Re: [Gambas-user] gb3: Format$

2011-06-26 Thread Kevin Fishburne
On 06/26/2011 03:09 PM, Benoît Minisini wrote: >>> I hope I'm really not so stupid that I'm missing something obvious. I'm >>> not even drinking right now! >> >> Mmm... You're right, there's something nasty there. I'm currently >> investigating... > > The bug should be fixed in revision #3900. Awe

Re: [Gambas-user] gb3: Format$

2011-06-26 Thread Benoît Minisini
> > I hope I'm really not so stupid that I'm missing something obvious. I'm > > not even drinking right now! > > Mmm... You're right, there's something nasty there. I'm currently > investigating... The bug should be fixed in revision #3900. Regards, -- Benoît Minisini

Re: [Gambas-user] gb3: Format$

2011-06-26 Thread Benoît Minisini
> That makes perfect sense and was the expected behavior. I'm not sure > what's happening here, but this test code: > > Public Sub Main() > >Dim t As Float > >t = CFloat(Now) ' Current time and date. > >Print "1: CDate(t): " & CDate(t) >Print "2: Format$(

Re: [Gambas-user] gb3: Format$

2011-06-26 Thread EA7DFH
El 26/06/11 05:54, Kevin Fishburne escribió: > On 06/25/2011 09:41 PM, nando wrote: >> Yes-Silly me! >> How about trying the print statements with ; and not& >> I'm curious how the bug manifests. > > It displays the same results: > > Public Sub Main() > >Dim t As Float > >t = CFloat(Now

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread Kevin Fishburne
On 06/25/2011 09:41 PM, nando wrote: > Yes-Silly me! > How about trying the print statements with ; and not& > I'm curious how the bug manifests. It displays the same results: Public Sub Main() Dim t As Float t = CFloat(Now) ' Current time and date. Print "1: CDate(t):

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread nando
Yes-Silly me! How about trying the print statements with ; and not & I'm curious how the bug manifests. -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Sat, 25 Jun 2011 19:19:09 -0400 Subject: Re: [Gambas-user] gb3: Format$ &

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread Kevin Fishburne
On 06/25/2011 07:05 PM, nando wrote: > 18:35 is 6:35 pm > just in 24 hour time > I understand that. I just don't understand why a completely different line is affect by the previous line's Format$. If I comment out the Format$ lines, the same value is printed on the remaining lines. Uncommentin

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread nando
18:35 is 6:35 pm just in 24 hour time -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Sat, 25 Jun 2011 18:45:16 -0400 Subject: Re: [Gambas-user] gb3: Format$ > On 06/24/2011 06:42 PM, Benoît Minisini wrote: > >> I

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread Kevin Fishburne
On 06/24/2011 06:42 PM, Benoît Minisini wrote: >> I'm using this to print a formatted date: >> >> Draw.Text("Date and Time: "& CDate(Server.DateCurrent)& " ("& >> Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM")& ")", 32, ystart - 1) >> >> It seems that Format$ actually changes the value of Ser

Re: [Gambas-user] gb3: Format$

2011-06-24 Thread Benoît Minisini
> I'm using this to print a formatted date: > > Draw.Text("Date and Time: " & CDate(Server.DateCurrent) & " (" & > Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM") & ")", 32, ystart - 1) > > It seems that Format$ actually changes the value of Server.DateCurrent, > making it AM when it should be