TimeSpan Format Strings
You can create a standard or custom time span format string, which consists of one or more specifiers, to define how to format time span data using Composite Formatting of strings.
Standard TimeSpan Format Strings
A standard TimeSpan format string uses a single format specifier to define the text representation of a TimeSpan value that results from a formatting operation
The following table describes the standard time span format specifiers and displays a result string produced by each format specifier. Note that the string representations of time span values typically vary by culture. See the Example section for EasyLanguage code samples.
Example
The following shows the use of composite formatting.
Composite formatting sample print output |
- Click on the Import Example link to import the example into TradeStation.
- Go to the TradeStation platform and create a Chart window. Use the Insert - Indicator menu sequence and Add to the chart window. Select the View > EasyLanguage Print Log to see the text output.
- To review or modify the example code, go to the TS Development Environment and open indicator in the EasyLanguage Editor.