Generating "TS" headers

I have a TS header which is in format: Thu, 9 Feb 2023 18:24:26 UTC and was hoping I can use UNIX time and convert to said format?

BLOCK:Script
INTERPRETER:IronPython
INPUT 
BEGIN SCRIPT
from datetime import datetime

utc_now = datetime.utcnow()
date = utc_now.strftime('%a, %d %b %Y %H:%M:%S UTC')
END SCRIPT
OUTPUT String @date
ENDBLOCK

1 Like