Skip to content

Add timestamp(tz) column types#2471

Merged
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:timestamp
May 17, 2026
Merged

Add timestamp(tz) column types#2471
lonvia merged 1 commit into
osm2pgsql-dev:masterfrom
joto:timestamp

Conversation

@joto
Copy link
Copy Markdown
Collaborator

@joto joto commented May 16, 2026

With the special behaviour that a number is interpreted as seconds since the epoch which is the format used by object.timestamp. This avoids having to format the timestamp as string in the Lua script.

Copy link
Copy Markdown
Collaborator

@lonvia lonvia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests don't cover timestamp-as-string, don't they?

@joto
Copy link
Copy Markdown
Collaborator Author

joto commented May 17, 2026

The tests in tests/bdd/flex/timestamp.feature take timestamps from tags and write them as string.

With the special behaviour that a number is interpreted as seconds since
the epoch which is the format used by object.timestamp. This avoids
having to format the timestamp as string in the Lua script.
@lonvia lonvia merged commit ee2f4b0 into osm2pgsql-dev:master May 17, 2026
43 of 44 checks passed
@joto joto deleted the timestamp branch May 17, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants