Epoch times are littered throughout the JSON behind the scenes in ArcGIS Online, from created and modified datetimes to usage statistics and even in feature attributes. It is important to know how to convert these to a more readable format. Below, we look at converting to a date, and you can find more conversion options from the Python docs here.
from arcgis.gis import GIS
from datetime import datetime
import json
## Access ArcGIS Online
agol = GIS("home") # authenticate with "pro" or alternative
## Access a content item with an Item ID
item = agol.content.get("ITEM_ID")
## (optional) Print item properties to screen to see some date properties such
## as created and modified
print(json.dumps(item, indent=4))
## (optional) You can also access the properties individually
print(item.created)
## Convert ArcGIS Online Epoch to DD/MM/YYYY
created_date = datetime.utcfromtimestamp(item.created / 1000).strftime("%d/%m/%Y")
print(created_date)