Skip to main content
Version: v7.0.0

block_time/1

Description

block_time/1 is a predicate which unifies the given term with the current block time.

The signature is as follows:

block_time(?Time)

where:

  • Time represents the current chain time at the time of the query.

Examples

# Query the current block time.
- block_time(Time).