ProtoFlux:Construct DateTime: Difference between revisions

From Resonite Wiki
Added a warning to let people know that this node can break if putting in the wrong numbers in the inputs.
Slight correction.
 
Line 22: Line 22:


{{Note|This node is wanting numbers that are normally expected from an actual date and time, and giving unexpected values can break this node and will not give you the DateTime that you want. Some examples of unexpected numbers:
{{Note|This node is wanting numbers that are normally expected from an actual date and time, and giving unexpected values can break this node and will not give you the DateTime that you want. Some examples of unexpected numbers:
* Putting zeros (0) in all fields (specifically in the year, month, and day inputs) will break that portion of the date and time.
* Putting zeros (0) in all fields (specifically in the year, month, and day inputs) will break the node.
* Putting the total length of time or more in the input will break this node (ex: 1000 in milliseconds, 65 in minutes, etc).
* Putting the total length of time or more in the input will break this node (ex: 1000 in milliseconds, 65 in minutes, etc).
* Putting negative numbers into the inputs will break this node.|warning}}
* Putting negative numbers into the inputs will break this node.|warning}}

Latest revision as of 19:08, 20 May 2024

Construct DateTime
Year
*
Month
Day
Hour
Minute
Second
Millisecond
Kind
DateTime

The Construct DateTime node takes in everything needed to create a DateTime, the parts include the Year, Month, Day, Hour, Minute, Second, Millisecond, and Kind. This gets combined into a newly created DateTime value that can be used.

This node is wanting numbers that are normally expected from an actual date and time, and giving unexpected values can break this node and will not give you the DateTime that you want. Some examples of unexpected numbers:
  • Putting zeros (0) in all fields (specifically in the year, month, and day inputs) will break the node.
  • Putting the total length of time or more in the input will break this node (ex: 1000 in milliseconds, 65 in minutes, etc).
  • Putting negative numbers into the inputs will break this node.

Inputs

Year (int)

The year for creating this DateTime.

Month (int)

The month for creating this DateTime.

Day (int)

The day for creating this DateTime.

Hour (int)

The hour for creating this DateTime.

Minute (int)

The minute for creating this DateTime.

Second (int)

The second for creating this DateTime.

Millisecond (int)

The millisecond for creating this DateTime.

Kind (DateTimeKind)

The type of time this is (Unspecified, Utc, or Local)

Outputs

* (DateTime)

The newly created DateTime value.