Format Time (LogiX node)/ja
Format Time | ||
---|---|---|
Inputs | ||
Float | Time | |
Int | DecimalPlaces | |
IFormatProvider | FormatProvider | |
Outputs | ||
String | Str |
The Format Time node takes a date and time input and formats the time as a string, with various flags to customize its output.
Usage
This node takes a DateTime
input, three bool
s as input, and an IFormatProvider
as input, and it outputs a string.
The Use24HourClock
input toggles whether the time is represented as 24 hours or 12 hours with AM and PM. The ShowSeconds
input toggles whether the output shows the seconds place. The ShowMilliseconds
input toggles whether the output shows the milliseconds place. By default, all of these values are true
.
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, the current date and time from UtcNow is being converted to 24-hour time with the seconds and milliseconds places shown.
ノードメニュー
String / Quick Format | ||||||
---|---|---|---|---|---|---|
Back | Format Date | Format Time | Format Timespan | To Time String |