Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Pulling created date from the Objectid #110

Open
sachmans opened this issue Nov 16, 2015 · 1 comment
Open

Pulling created date from the Objectid #110

sachmans opened this issue Nov 16, 2015 · 1 comment

Comments

@sachmans
Copy link

HI,

I am trying to work out how to use a function like this getTimestamp() in the YAML or another way to get the date/time from the ObjectID for the particular document to know when it was created.

Any help on this would be greatly useful.

Sachin

@BradRuderman
Copy link

@sachmans I know this probably isn't ideal but you can pull it out with a query, perhaps even creating a function:

SELECT to_timestamp(('x' || lpad(substring(object_id,0,9), 8, '0'))::bit(32)::int)::timestamp ts
FROM objects

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants