formattedTimeStamp method

DateTime formattedTimeStamp()

Get current datetime in UTC to be used in generating the signature and identity string

Implementation

DateTime formattedTimeStamp() {
  /// The current date time in seconds (epoch), but as final so it doesn't change
  final microsecondsSinceEpoch = DateTime.now().microsecondsSinceEpoch;

  /// Create a DateTime from the microsencds
  DateTime now = DateTime.fromMicrosecondsSinceEpoch(microsecondsSinceEpoch,
      isUtc: true);

  return now;
}