# Reversing an object handle to its creation date

**URL:** <https://gramps.discourse.group/t/reversing-an-object-handle-to-its-creation-date/2614>\
**Category:** Help\
**Tags:** dates, supertool-script\
**Created:** [July 19, 2022, 9:25am UTC](https://gramps.discourse.group/t/reversing-an-object-handle-to-its-creation-date/2614 "2022-07-19T09:25:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [July 19, 2022, 4:36pm UTC](https://gramps.discourse.group/t/reversing-an-object-handle-to-its-creation-date/2614/5 "2022-07-19T16:36:01Z")

</div>

Thanks Paul !

Yes, it still requires a little calculation: dividing handle[0:11] by 10000.

This SuperTool script allow you to retrieve any object creation date (don’t care about people category warning):

```auto
[Gramps SuperTool script file]
version=1

[title]
SuperTool - Object Creation Date

[category]
People

[initial_statements]
from datetime import date as dt

[statements]
hand: float = float.fromhex(obj.handle[0:11])

creation = dt.fromtimestamp(hand/10000)

[filter]

[expressions]
creation

[scope]
selected

[unwind_lists]
False

[commit_changes]
False

[summary_only]
False

```

---

_[View the full topic](https://gramps.discourse.group/t/reversing-an-object-handle-to-its-creation-date/2614)._
