Timestamp.now constructor

Timestamp.now()

Creates a Timestamp for the current time.

Returns: A Timestamp for now.

Example:

var now = Timestamp.now();

Implementation

factory Timestamp.now() {
  return Timestamp.fromMicrosecondsSinceEpoch(
    DateTime.now().microsecondsSinceEpoch,
  );
}