Date/Time to Unix Epoch
Jump to navigation
Jump to search
File:TArduinoDateTimeToUnixEpoch.png
Summary
The **Date/Time to Unix Epoch** component converts a given date and time value into a Unix Epoch timestamp. Optionally, the output can include milliseconds for higher precision.
Description
This component is useful for timekeeping, logging, scheduling, and synchronizing events across systems. Unix Epoch represents the number of seconds (or milliseconds) since **January 1, 1970 (UTC)**, and is a standard format used in many platforms and protocols.
Diagram:
Properties
- Milli Seconds (boolean) – If enabled, the output timestamp includes milliseconds; otherwise, it outputs seconds only.
Pins
Input Pins
- in – Date/Time input value.
Output Pins
- out – Unix Epoch timestamp output.
Categories
- File:TArduinoTimeCategory.png Category Time – Time and scheduling components.
- File:TArduinoUtilityCategory.png Category Utility – Utility and conversion components.