dateTimeNow static method

QVar dateTimeNow()

Creates a QVar containing the current DateTime as ISO 8601 string.

Returns a QVar with the current date and time.

Example:

var nowVar = QVar.dateTimeNow(); // Current timestamp

Implementation

static QVar dateTimeNow() => dateTime(DateTime.now());