ProtoFlux:To Unix Milliseconds

From Resonite Wiki
To Unix Milliseconds
DateTime
*
Time

The To Unix Milliseconds node takes in a DateTime and returns with the amount of milliseconds elapsed from that DateTime since January 1st, 1970.

Avoid comparing UTC Now and User Time against each other for validation with this node. It is accurate to say that UTC and local time are different times (hence, time zones), but since they are both this moment in time, the result is the same. This node actually takes a point in time and compares it to the Unix Epoch.

Inputs

DateTime (DateTime)

The DateTime to compare against the start of Unix time.

Outputs

* (long)

Returns the number in milliseconds between the two points in time (the DateTime provided and the Unix Epoch) represented as a long.