VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Formats a number (may be an amount of seconds, minutes, etc) into hh:nn or hh:nn:ss, using 24 hour

Gabriel Tavares de Oliveira Castellani  (5 Submissions)   String Manipulation   Visual Basic 5.0   Unknown Difficulty   Thu 26th August 2004   Mon 8th February 2021

Formats a number (may be an amount of seconds, minutes, etc) into hh:nn or hh:nn:ss, using 24 hour convention.

API Declarations


'***********************************************************
' Formats a number as an hour (hh:mm ou hh:mm:ss)
'
' If FORMATO is equal to:
' 0: accepts VALOR as m, mm, hmm, hhmm, h:m, h:mm, hh:mm
' and converts to hh:mm (00:00)
' 1: accepts VALOR in minutes and converts to hh:mm.
' Ex.: Valor=123. Result=02:03
' 2: accepts VALOR as ss, mss, mmss, m:ss, mm:ss, hmmss,
' h:m:s, h:m:ss, h:mm:ss, hhmmss, hh:mm:ss, h:m, h:mm,
' h:mm and converts to hh:mm:ss
' 3: accepts VALOR as seconds and converts to hh:mm:ss
' Ex.: Valor=5148. Resposta=01:25:48
'
' If Roda24Horas is TRUE, dunno allow hours greater than 23
' Ex.: 25:10:18 will be converted to 01:10:18
'
' Ex.: FormataHora(107599, 3) -> 05:53:19
' FormataHora(107599, 3, False) -> 29:53:19
' FormataHora(107599, 3, False, True) -> 29h 53m 19s

'***********************************************************


Rate Formats a number (may be an amount of seconds, minutes, etc) into hh:nn or hh:nn:ss, using 24 hour (1(1 Vote))
Formats a number (may be an amount of seconds, minutes, etc) into hh:nn or hh:nn:ss, using 24 hour .bas

Formats a number (may be an amount of seconds, minutes, etc) into hh:nn or hh:nn:ss, using 24 hour Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters