time property

DateTime time
final

The timestamp when the code was scanned.

This is automatically set to the current time (DateTime.now()) if not explicitly provided to the constructor.

Useful for:

  • Logging scan history
  • Implementing time-based validation
  • Tracking how recent a scan is

Implementation

final DateTime time;