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"
- (not recommended) as JSON number, like
1599391467000
Last modified 1yr ago