FutureBasic Logo

<<    Index    >> FutureBasic 5

time$   function



Syntax:
time$ [( formatString$ )]

Description:
time$ returns a string based on the current time. It may be used both with and without a formatString$.

Using time$ without a formatString$ returns the current time as an 8-character string containing two digit numerals each for hour, minutes and seconds, separated by colon marks, specifically in "hh:mm:ss" 24-hour format.

Using time$ with a formatString$ returns a string based on the current time and formatted based on formatString$.

The formatString$ must contain Unicode Date and Time symbols as shown below and in Appendix I - Data & Time Symbols.

Example:

print time$
print time$("hh:mm:ss")
print time$("h:mm a")
print time$("h:mm a zzz")

23:46:49
11:46:49
11:46 PM
11:46 PM GMT-07:00

More Date & Time symbols can be found in Appendix I - Data & Time Symbols.

See Also:
date$; Appendix I - Data & Time Symbols