unixTimerToTimer method

DateTime unixTimerToTimer({
  1. EnumSsOrMs? ssOrMs = EnumSsOrMs.ms,
})

UnixTimer to Timer

Implementation

DateTime unixTimerToTimer({EnumSsOrMs? ssOrMs = EnumSsOrMs.ms}){
  if(ssOrMs == EnumSsOrMs.ms)
  {
    return DateTime.fromMillisecondsSinceEpoch(this);
  }
  else
  {
    return DateTime.fromMicrosecondsSinceEpoch(this);
  }
}