toRfc3339 method

String? toRfc3339()

RFC 3339 string (null when seconds are missing).

Implementation

String? toRfc3339() {
  final s = seconds;
  if (s == null) return null;
  return ProtoUtils.timestampToRfc3339(s.toInt(), nanos ?? 0);
}