@DanThomas has created a very useful set of macros that allow you to copy and edit macros or actions in either KBM's native XML or in JSON. When looking at either version of the code for a macro, there are a couple of numerical values, such as these, taken from the JSON version of a macro I'm working on:
"CreationDate": 721381695.292977,
"ModificationDate": 758616880.810884,
How can I interpret those numbers as date and time values?
In looking around the Forum here, I find some interesting macros that will allow you to generated lists of the N most recently edited macros, so I presume that those macros are extracting the ModificationDate
from all other macros. So that's one piece of the puzzle.
For my purposes, I would like to know which version of a macro is the most recent when I have saved multiple copies. That would be the N most recent, where N is 1, out of a selected group of macros, not the whole Editor, so that task may be beyond the current limits of that existing tool. I'm not sure and that's more work than translating the numbers right now.
I would also like to know the time order of multiple copies of a macro, especially when I've put cryptic notes into the macro name that I can no longer interpret. Again, above and beyond simply translating the numbers, which can manually give me that information.
At minimum, a function or a link to a units conversion web site where I could enter those values and gets dates and times back would do the job for now. Is there such a thing?
Given that, it would be interesting to embed that function or web access into a macro where I could simply select one of my macros in the KBM Editor and run the "Show Macro Dates" macro and get a text display that shows the macro name, the creation date, and the modification date. I could then copy that text and paste it into a Comment as the first action in the macro itself, which would be a help in keeping my macros annotated.
But first I need to be able to translate the numbers. Any pointers?
Thanks.