
|
<<
Index
>>
|
FutureBasic
|
time, time$
|
|
functions
|
|
Syntax
CFStringTime =
time(
formatCFString )
PascalStringTime =
time$(
formatPascalString )
Description
time and time$ return a string based on the current time. A formatCFString or formatPascalString controls output formatting.
The formatCFString or formatPascalString must contain Unicode Date and Time symbols as shown below and found in Appendix I - Data & Time Symbols.
Example
NSLog( @"%@",
time ) // default format HH:mm:ss
NSLog( @"%@",
time(@"hh:mm:ss") )
NSLog( @"%@",
time(@"h:mm a") )
NSLog( @"%@",
time(@"h:mm a zzz") )
23:04:26
11:04:26
11:04 PM
11:04 PM MST
See also
date; Appendix I - Data & Time Symbols