Time Procedure

Version 7

Returns the current or specified date/time time portion.

Syntax

[ dtTime = ] Time ( [ dt ] )

The Time procedure syntax has the following parts:

Name

Type

Description

dtTime

DateTime

Return value: time portion of given or current date/time

dt

[Val] DateTime

Date time if given

Comments

If date time is not specified, current date time is used. 

Example

 

print Time()   ! prints current time "1:29:10 PM"

print Time(dt) ! prints time part of "dt" (no date)

See Also

Date, STime, Hour, Minute, Second, MillSecond, Tick, DateTime Data Type, Now