Links

Timestamp formats

All input Metarank events have a timestamp field, an example:
{
"type": "item",
"id": "product1",
"timestamp": "1599391467000",
"fields": [
{"name": "title", "value": "Nice jeans"}
]
}
The underlying JSON format has a numerical precision issue with timestamps encoded as double numbers, so Metarank supports multiple ways of parsing timestamps:
  • as string literal: number of millis from 1970-01-01 00:00:00 in UTC as a string, like "1599391467000"
  • as ISO 8601 formatted zoned datetime string, in UTC: "2022-06-22T11:21:39Z"
  • (not recommended) as JSON number, like 1599391467000