Access timestamp information of created Object

I am using Realm Flexible synch with Swift. Is there a way to access the created timestamp of on object? Or is this something I should add?
@Persisted let createdTimeStamp = Date()

Hi @Xavier_De_Leon1,

If your classes are using ObjectId for the _id primary key, and letting the code generate() it at the time of creation, you can use the timestamp property. It’s typically accurate to the second. if that’s enough for you.

2 Likes