Format Time (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
This page contains changes which are not marked for translation.
Other languages:
English • ‎日本語
Format Time
'Format Time' LogiX node
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 bools 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.

Logix Example FormatTime.png

Node Menu

String / Quick Format
Back Format Date Format Time Format Timespan To Time String