--- type_name: QueryDateRange layout: sidebar fields: [] --- {% capture content %} com.spotify.heroic.QueryDateRange
An absolute time span.
{% endcapture %} {% assign fields = page.fields %} {% include mkhash.inc required=true name="type" type_json='"absolute"' purpose='Type of the absolute date range.' %} {% assign fields = fields | push: hash %} {% include mkhash.inc required=true name="start" type_json='<number>' purpose='Starting timestamp in milliseconds from the unix epoch.' %} {% assign fields = fields | push: hash %} {% include mkhash.inc required=true name="end" type_json='<number>' purpose='Ending timestamp in milliseconds from the unix epoch.' %} {% assign fields = fields | push: hash %} {% include api-type.html fields=fields content=content type_name='QueryDateRange.Absolute' %} {% capture content %} com.spotify.heroic.QueryDateRangeRelative date ranges range from the current time, to a specific point in the past.
This object tells the distance to the point in the past.
{% endcapture %} {% assign fields = page.fields %} {% include mkhash.inc required=true name="type" type_json='"relative"' purpose='Type of the relative date range.' %} {% assign fields = fields | push: hash %} {% capture purpose %}
Unit to use for value
unit
must be one of.
"MILLISECONDS"
"SECONDS"
"MINUTES"
"HOURS"
"DAYS"
"WEEKS"
"MONTHS"
unit
timespans back in time this date starts.' %}
{% assign fields = fields | push: hash %}
{% include api-type.html fields=fields content=content type_name='QueryDateRange.Relative' %}