getTs static method

String getTs()

Generates a timestamp in the proper DSA format.

Implementation

static String getTs() {
  var d = DateTime.now();
  if (d.millisecondsSinceEpoch == _lastTs) {
    return _lastTsStr;
  }
  _lastTs = d.millisecondsSinceEpoch;
  _lastTsStr = "${d.toIso8601String()}$TIME_ZONE";
  return _lastTsStr;
}