-
Is there an example of how to use a date type in Themepark? Or is that just asking for trouble? Does the base OSM data support a date type that gets parsed into a Lua Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
joto
Jan 18, 2025
Replies: 1 comment
-
The only date type in OSM data is the creation timestamp of an OSM object which is given to Lua as a number in seconds since Jan 1 1970. This is compatible to what the Lua |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only date type in OSM data is the creation timestamp of an OSM object which is given to Lua as a number in seconds since Jan 1 1970. This is compatible to what the Lua
os.time
function returns. There is no native date or time datatype in Lua. All OSM tags are strings, so no date ot time datatype there either.