getSafeTimestamp method

int getSafeTimestamp(
  1. DateTime dateTime
)

Returns the safe milliseconds-since-epoch representation of dateTime.

This delegates to TimestampExtension.safeMillisecondsSinceEpoch.

Implementation

int getSafeTimestamp(DateTime dateTime) {
  return dateTime.safeMillisecondsSinceEpoch;
}