updated property

DateTime? updated

Gets the last updated time.

Returns: The updated DateTime or null.

Implementation

DateTime? get updated {
  final raw = _metadata["updated"];
  if (raw == null) return null;

  // Try standard ISO8601
  try {
    return DateTime.parse(raw);
  } catch (_) {}

  // Try HTTP Date
  try {
    return HttpDate.parse(raw);
  } catch (_) {}

  // Try Oracle
  return parseOracleTimestamp(raw);
}