core.engine.get_timestamp

Shared

Retrieves engine's current timestamp


Syntax

local timestamp = core.engine.get_timestamp()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
tabletimestampEngine's current 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 engine's current timestamp
core.engine.print("info", "current timestamp:")
core.engine.iprint(core.engine.get_timestamp())

On this page