View Source Dpos.Time (DPoS v0.4.0)

Provides functions to work with Lisk timestamps.

Summary

Functions

Converts a Lisk timestamp to DateTime.

Returns the current Lisk timestamp.

Functions

@spec at(integer()) :: DateTime.t()

Converts a Lisk timestamp to DateTime.

@spec now() :: integer()

Returns the current Lisk timestamp.