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
| Type | Name | Description |
|---|---|---|
table | timestamp | Engine'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
core.engine.print("info", "current timestamp:")
core.engine.iprint(core.engine.get_timestamp())