ProtoFlux:Construct DateTime

From Resonite Wiki
Revision as of 19:08, 20 May 2024 by AmasterAmaster (talk | contribs) (Slight correction.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.