Re: [Gambas-user] Time Format => Error

2013-07-29 Thread Kende Krisztián
Or you may calculate manually: Dim nNum As Long = 32768 Dim nHour As Long Dim nMin, nSec As Byte nHour = Int(nNum / 3600) nMin = Int(nNum / 60) - nHour * 60 nSec = nNum - (nHour * 3600 + nMin * 60) > > Hello. > It was good to use Time(0, 0, seconds) but for now I need to use more > seconds. >

Re: [Gambas-user] Time Format => Error

2013-07-29 Thread Benoît Minisini
Le 29/07/2013 18:22, abbat81 a écrit : > Benoît Minisini wrote >> Format(nSeconds / 3600 / 24, "hh:nn:ss") > > > Benoît, I cant understand how to use this. > > All I got - "bad format string" > Sorry, I meant: Format(CDate(nSeconds / 3600 / 24), "hh:nn:ss") -- Benoît Minisini -

Re: [Gambas-user] Time Format => Error

2013-07-29 Thread abbat81
Benoît Minisini wrote > Format(nSeconds / 3600 / 24, "hh:nn:ss") Benoît, I cant understand how to use this. All I got - "bad format string" -- View this message in context: http://gambas.8142.n7.nabble.com/Time-Format-Error-tp42654p42656.html Sent from the gambas-user mailing list archive a

Re: [Gambas-user] Time Format => Error

2013-07-29 Thread Benoît Minisini
Le 29/07/2013 17:42, abbat81 a écrit : > > Hello. > It was good to use Time(0, 0, seconds) but for now I need to use more > seconds. > > So, now I get: > > Print Time(0, 0, 32767) => 09:06:07 > Print Time(0, 0, 32768) => 14:53:52 (00/00/ 14:53:52) > > How can I get Format("hh:nn:ss") from se

[Gambas-user] Time Format => Error

2013-07-29 Thread abbat81
Hello. It was good to use Time(0, 0, seconds) but for now I need to use more seconds. So, now I get: Print Time(0, 0, 32767) => 09:06:07 Print Time(0, 0, 32768) => 14:53:52 (00/00/ 14:53:52) How can I get Format("hh:nn:ss") from seconds? Thanks. -- View this message in context: http