ReferenceScript nodesMath › Date and Time
Make Date and Time
A DateTime from its parts (month 1 to 12, hour 0 to 23); parts that aren't a real date and time give the empty DateTime, with a warning.
ƒMake Date and Time
Year2000Result
Month1
Day1
Hour0
Minute0
Second0
Millisecond0
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Yearyear | int | 2000 | – |
Monthmonth | int | 1 | – |
Dayday | int | 1 | – |
Hourhour | int | 0 | – |
Minuteminute | int | 0 | – |
Secondsecond | int | 0 | – |
Millisecondms | int | 0 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | datetime |
In a graph
◆On Scene Start
ƒMake Date and Time
Year2000Result
Month1
Day1
Hour0
Minute0
Second0
Millisecond0
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.