# Why "now-60m" is not equal to "now-1h"

**URL:** <https://discuss.elastic.co/t/why-now-60m-is-not-equal-to-now-1h/246400>\
**Category:** Elasticsearch\
**Created:** [August 26, 2020, 7:13am UTC](https://discuss.elastic.co/t/why-now-60m-is-not-equal-to-now-1h/246400 "2020-08-26T07:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cold](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@cold](https://discuss.elastic.co/u/cold)\
**Post date:** [August 26, 2020, 7:13am UTC](https://discuss.elastic.co/t/why-now-60m-is-not-equal-to-now-1h/246400/1 "2020-08-26T07:13:54Z")

</div>

elasticsearch version 7.1.1

index mapping is:

```auto
{
  "mappings": {
    "properties": { 
      "@timestamp": { "type": "date" }, 
      "value": { "type": "integer" }
    }
  }
}

```

index data is:

```auto
{"index":{"_index":"test","_id":"1"}}
{"@timestamp":"2020-08-26T13:00:00+08:00","value":1}
{"index":{"_index":"test","_id":"2"}}
{"@timestamp":"2020-08-26T14:00:00+08:00","value":2}
{"index":{"_index":"test","_id":"3"}}
{"@timestamp":"2020-08-26T15:00:00+08:00","value":3}

```

when i query with "now-60m"

```auto
{"query":{"range":{"@timestamp":{"gt":"now-60m"}}}} 

```

got 1 hits

```auto
{"_index":"test","_type":"_doc","_id":"3","_score":1,"_source":{"@timestamp":"2020-08-26T15:00:00+08:00","value":3}}

```

when i query with "now-1h"

```auto
{"query":{"range":{"@timestamp":{"gt":"now-1h"}}}}

```

got 0 hits

even "now-1d" return 0 hits too

why?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 23, 2020, 7:14am UTC](https://discuss.elastic.co/t/why-now-60m-is-not-equal-to-now-1h/246400/2 "2020-09-23T07:14:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
