function validateRawTimestamp(rawTimestamp) {
                        let currentTimestamp

                        if (String(rawTimestamp).length === 10) {
                            currentTimestamp = new Date(rawTimestamp)

                        } else if (String(rawTimestamp).length === 13) {
                                    currentTimestamp = new Date()
                                    currentTimestamp.setTime(rawTimestamp)

                        } else {
                            console.log(`This timestamp format: ${rawTimestamp} is not currenly supported. Please raise an issue in the develop groups to get it added!`)
                        }

                        return currentTimestamp
                    }
The function validates a raw timestamp and returns a Date object.
@param rawTimestamp - a timestamp value that needs to be validated and converted
to a Date object. It can be either a Unix timestamp (in seconds) or a JavaScript
timestamp (in milliseconds). The function checks the length of the rawTimestamp
parameter to determine which type of timestamp it is. If it is a Unix timestamp
(
@returns the current timestamp in the form of a Date object, based on the input
rawTimestamp. If the input rawTimestamp is not in a supported format, the
function logs a message to the console and does not return anything.