now function

  1. @Deprecated("Use inbuilt DateTime.now().millisecondsSinceEpoch instead")
int now()

Gets the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).

Implementation

@Deprecated("Use inbuilt DateTime.now().millisecondsSinceEpoch instead")

/// Gets the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).
int now() => DateTime.now().millisecondsSinceEpoch;