timeCreated property

DateTime? timeCreated

Gets the creation time.

Returns: The creation DateTime or null.

Implementation

DateTime? get timeCreated {
  final raw = _metadata["timeCreated"];
  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);
}