Difference between revisions of "To Time String (LogiX node)"
Jump to navigation
Jump to search
(Created page with "<languages></languages> <translate> <!--T:1--> {{Infobox Logix Node | Name = To Time String | Image =File: FormatAsTimeNode.png | noframe | 128px | 'To Time String' LogiX no...") |
(Marked this version for translation) |
||
Line 17: | Line 17: | ||
This node takes a <code>float</code> input, <code>int</code> input, and <code>IFormatProvider</code> input, and it outputs a string. | This node takes a <code>float</code> input, <code>int</code> input, and <code>IFormatProvider</code> input, and it outputs a string. | ||
+ | <!--T:6--> | ||
The <code>time</code> provided is formatted to a time string containing hours, minutes, seconds, and <code>DecimalPlaces</code> amount of decimal places. | The <code>time</code> provided is formatted to a time string containing hours, minutes, seconds, and <code>DecimalPlaces</code> amount of decimal places. | ||
+ | <!--T:7--> | ||
The output format defaults to an Invariant Culture, and it is recommended to not be changed unless the output is meant to be seen to other users and you are not parsing the output in any way. | The output format defaults to an Invariant Culture, and it is recommended to not be changed unless the output is meant to be seen to other users and you are not parsing the output in any way. | ||
Line 24: | Line 26: | ||
In the following image, 18364.2 seconds is converted to a time string, <code>5:06:04.721</code> | In the following image, 18364.2 seconds is converted to a time string, <code>5:06:04.721</code> | ||
+ | <!--T:8--> | ||
[[File:Logix Example ToTimeString.png|600px]] | [[File:Logix Example ToTimeString.png|600px]] | ||
Revision as of 20:50, 11 September 2022
To Time String | ||
---|---|---|
Inputs | ||
Float | Time | |
Int | DecimalPlaces | |
IFormatProvider | FormatProvider | |
Outputs | ||
String | Str |
The To Time String node takes a number in seconds and formats it as a time string to the specified amount of decimal places.
Usage
This node takes a float
input, int
input, and IFormatProvider
input, and it outputs a string.
The time
provided is formatted to a time string containing hours, minutes, seconds, and DecimalPlaces
amount of decimal places.
The output format defaults to an Invariant Culture, and it is recommended to not be changed unless the output is meant to be seen to other users and you are not parsing the output in any way.
Examples
In the following image, 18364.2 seconds is converted to a time string, 5:06:04.721
Node Menu
String / Quick Format | ||||||
---|---|---|---|---|---|---|
Back | Format Date | Format Time | Format Timespan | To Time String |