now method

  1. @override
DateTime now()
override

The current instant, always in UTC.

UTC is not a preference, it is a correctness requirement: agent runs are suspended on one device and resumed on another, memories are written on a phone and read on a desktop, and traces are merged across time zones. A local DateTime in any of those paths is a bug waiting for a user to travel.

Implementation

@override
DateTime now() => _now;