Engine

core.engine.get_timestamp

Shared

Retrieves current timestamp

Syntax

local timestamp = core.engine.get_timestamp()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
tabletimestampCurrent timestamp containing the following fields:
• hour (number) - current hour
• minute (number) - current minute
• second (number) - current second
• day (number) - current day
• month (number) - current month
• year (number) - current year

Examples

Prints current timestamp
core.engine.print("info", "current timestamp:")
core.engine.iprint(core.engine.get_timestamp())

On this page