Re: [Gambas-user] Time Format in 00:00:00 (Two digits)

2012-08-05 Thread Fabien Bodard
The Emil version is the good one Le 5 août 2012 15:21, "Adam Ant" a écrit : > And if you want to be even more confused, try this: > > Public Sub Main() > Dim sTime As String = Time(Now()) > Print sTime > Print Time(Now()) > End > > The bind moggles! > Bruce > > -

Re: [Gambas-user] Time Format in 00:00:00 (Two digits)

2012-08-05 Thread Adam Ant
And if you want to be even more confused, try this: Public Sub Main() Dim sTime As String = Time(Now()) Print sTime Print Time(Now()) End The bind moggles! Bruce -- Live Security Virtual Conference Exclusive live ev

Re: [Gambas-user] Time Format in 00:00:00 (Two digits)

2012-08-05 Thread Emil Lenngren
Try Dim TimeS As String = Format$(Now, "hh:nn:ss") Read more at: http://gambasdoc.org/help/lang/userformat?v3 /Emil 2012/8/5 abbat > > > Dim TimeS as String = Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) > > We get a string like "9:8:4" > But

[Gambas-user] Time Format in 00:00:00 (Two digits)

2012-08-05 Thread abbat
Dim TimeS as String = Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) We get a string like "9:8:4" But it would be better this way: "09:08:04" Thanks -- View this message in context: http://old.nabble.com/Time-Format-in-00%3A00%3A00-%28Two-digits%29-tp34257082p34257082.html Sent from the g