I’m trying to write an ontology edit function to set a property as the current dateTime when the function is called.
My current attempt at doing this is the following:
object.eventOccuredAt = new Date().getTime()
But the linter is complaining at me because you can’t assign a Number to a Timestamp.
Can someone remind me how we can easily convert the current time into a timestamp please?