ProtoFlux:To Unix Seconds

From Resonite Wiki
To Unix Seconds
DateTime
*
Time

The To Unix Seconds node takes in a DateTime and returns with the amount of seconds 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 seconds between the two points in time (the DateTime provided and the Unix Epoch) represented as a long.