timestamp property

  1. @override
DateTime get timestamp
override

The Temporal Origin and synthesis record of this Nucleus instance.

When to use

Debugging – to know when a cell's blueprint was created.

How it works

Returns the DateTime when this nucleus was constructed.

Implementation

@override
DateTime get timestamp {
  final raw = get<dynamic>(
    () => record.timestamp,
    fallback: () => record.local.timestamp,
  );
  if (raw is DateTime) return raw;
  if (raw is int) return DateTime.fromMillisecondsSinceEpoch(raw);
  throw StateError('Nucleus timestamp is missing');
}