toUnixTime static method

int toUnixTime(
  1. DateTime datetime
)

Implementation

static int toUnixTime(DateTime datetime) =>
    (datetime.millisecondsSinceEpoch / 1000).round();