VB.NET Language in a Nutshell

   
TimeSerial Function

Class

Microsoft.VisualBasic.DateAndTime

Syntax

TimeSerial( hour , minute , second )

hour (required; Integer)

A number in the range 0 to 23

minute (required; Integer)

Any valid integer

second (required; Integer)

Any valid integer

Return Value

A Date representing the time specified by the arguments to the function

Description

Constructs a valid time given a number of hours, minutes, and seconds

Rules at a Glance

Programming Tips and Gotchas

Because TimeSerial handles time units outside of their normal limits, it can be used for time calculations. However, because the DateAdd function is more flexible and is internationally aware, it should be used instead for this purpose.

See Also

TimeOfDay Property, TimeString Property, TimeValue Function

   

Категории