# Seconds since Epoch and 'numeric\_resolution'

**URL:** <https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789>\
**Category:** Elasticsearch\
**Created:** [May 16, 2015, 6:03pm UTC](https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789 "2015-05-16T18:03:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Russo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_russo/32/44835_2.png) [@Roy\_Russo](https://discuss.elastic.co/u/Roy_Russo)\
**Post date:** [May 16, 2015, 6:03pm UTC](https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789/1 "2015-05-16T18:03:35Z")

</div>

'numeric\_resolution' fix, seen here :  
[https://github.com/jpountz/elasticsearch/commit/351bab5ff6c176114b8a68398a19aec64a8c933c](https://github.com/jpountz/elasticsearch/commit/351bab5ff6c176114b8a68398a19aec64a8c933c)

was supposed to allow date\_time to accept "seconds since epoch" style timestamps and treat them as date objects. Looking through the test case, I expected this to work with the below mapping, but everything comes back as 1/1/1970, so I'm guessing it's not working.

I tested this on 1.5.2. Is it included in that patch release?

Mapping example:

```
"properties": {
    "time_stamp":
        {
            "type": "date",
            "format": "date_time",
            "numeric_resolution": "seconds"
        },

```

Thoughts?

---

<div class="post-metadata">

**Author:** ![Roy\_Russo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_russo/32/44835_2.png) [@Roy\_Russo](https://discuss.elastic.co/u/Roy_Russo)\
**Post date:** [May 16, 2015, 6:27pm UTC](https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789/2 "2015-05-16T18:27:35Z")

</div>

Looks like this fix isn't scheduled until 1.6.0: [https://github.com/elastic/elasticsearch/pull/10420](https://github.com/elastic/elasticsearch/pull/10420)

If that's so, never mind. I was under the impression it was in 1.5.2.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 17, 2015, 9:40am UTC](https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789/3 "2015-05-17T09:40:26Z")

</div>

It will be in 1.6.0 indeed.

---

<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:** [July 6, 2017, 12:13am UTC](https://discuss.elastic.co/t/seconds-since-epoch-and-numeric-resolution/789/4 "2017-07-06T00:13:39Z")

</div>


