Create a sensor from payload with specific timestamp

Hi I’m using nodered to create a sensor that import data from a xml but I need to import historical data in this sensor, each value will have a time stamp. Can I set timestamp?