epochToMilliseconds function

int epochToMilliseconds({
  1. int epoch = 0,
})

convert epoch to unix time in milliseconds

Implementation

int epochToMilliseconds({int epoch = 0}) =>
    min(firstOneSecondEpoch, epoch) * millisecondsPerEpoch0_207 +
    max(0, epoch - firstOneSecondEpoch) * millisecondsPerEpochGt207 +
    epoch0Slot0UtcMs;