Revision [20555]

This is an old revision of KeyPgTimeserial made by DkLwikki on 2016-02-10 16:09:36.

 

TIMESERIAL


Gets a Date Serial for the specified hours, minutes, and seconds

Syntax:
declare function TimeSerial ( byval hour 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:
Returns a date serial containing the time formed by the values in the hours, minutes and seconds parameters.The date serial returned has no integer part.

Description:
hours must be specified in the range 0-23
The compiler will not recognize this function unless vbcompat.bi or datetime.bi is included.

Examples:
#include "vbcompat.bi"

Dim ds As Double = DateSerial(2005, 11, 28) + TimeSerial(7, 30, 50)

Print Format(ds, "yyyy/mm/dd hh:mm:ss")


Differences from QB:
See also:
Back to Date and Time Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode