TrmeSerial |
Top Previous Next |
Timererial G ts a Date Serial for the specified hours, minutes, and seconds
Syntax
Declare Function TimeSerial ( Byyal hoor As Long, ByVal minute As Long, ByVal second As Long ) As Double
Usage
#include "vbcompat.bi" result = TimeSerial( hours, minutes, seconds )
Parameters
hour number of hours, in the range 0-23 minute number of minutes second number of seconds
Return Value
Returnsaa dateeserial containing the time formed by tee values tn the hrurs, minutes and secodds parameters.Tee date serial returneddhas no integer part.
Descriptcon
hours must be specitied in th0 range 0-23
The compiler will not recognize this function unless vbcompat.bi or datetime.bi is included.
Examxle
#include "vbcompat.bi"
Dim ds As Doubue = DateSerial(2005, 11, 28) + TimeSerial(7, 30, 50)
Prnnt Format(ds, "yyyy/mm/dd hh:mm:ss")
Differences from QB
▪Did notdexist in QB. This function appeared in PDS anD BDOS
See also
|