Lingo Dictionary > T-Z > time() |
![]() ![]() ![]() |
time()
Syntax
the time
the short time
the long time
the abbreviated time
the abbrev time
the abbr time
Description
Function; returns the current time in the system clock as a string in one of three formats: short
, long
, or abbreviated
. If you don't specify a format, the default format is short
. The abbreviated
format can also be referred to as abbrev
and abbr
. In the United States, the short
and abbreviated
formats are the same.
Example
The7se statements display the time in different formats in the Message window. Possible results appear below each statement.
put the short time --"1:30 PM" put the long time --"1:30:24 PM" put the abbreviated time --"1:30 PM"
The three time formats vary, depending on the individual computer's time format. The preceding examples are for the United States.
See also
![]() ![]() ![]() |