Timestamp.now constructor

Timestamp.now()

Create a Timestamp from DateTime.now()

Implementation

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