Time, Time$ Functions |
Syntax
Time
Return Value
A Variant of subtype Date.
Description
Returns the current system time.
Rules at a Glance
The Time function returns the time in the date format hh:mm:ss AM/PM.
Programming Tips and Gotchas
The Time function returns only the system time; you can use the Time statement to set the system time.
See Also
- Time Statement, Now Function
Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.