Engine
engine.get_timestamp
Shared
Retrieves engine's current timestamp
Syntax
local timestamp = engine.get_timestamp()Parameters
| Type | Name | Description |
|---|
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
engine.print("current timestamp:")
engine.iprint(engine.get_timestamp())