getCurrentUnixTimestamp static method
Retrieves the current Unix timestamp in milliseconds.
The Unix timestamp is the number of milliseconds that have passed since January 1, 1970 (UTC). This is commonly used in applications to represent the current time in a machine-readable format.
Returns the current Unix timestamp as an integer.
Implementation
static int getCurrentUnixTimestamp() {
return DateTime.now().millisecondsSinceEpoch;
}