These docs are for v1.3.0. Click to read the latest docs for v1.6.

current_time

Get time of the last accepted block.

Returns the time in microseconds from 1970 of the current block (block including this action)

Returns

time in seconds from 1970 of the current block Example:

uint64_t timestamp = current_time();