# (Python) How to convert 19 digit timestamp from Alpaca Data API?

**URL:** <https://forum.alpaca.markets/t/python-how-to-convert-19-digit-timestamp-from-alpaca-data-api/1469>\
**Category:** Alpaca Integration Applications\
**Created:** [May 17, 2020, 3:03am UTC](https://forum.alpaca.markets/t/python-how-to-convert-19-digit-timestamp-from-alpaca-data-api/1469 "2020-05-17T03:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James99](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@James99](https://forum.alpaca.markets/u/James99)\
**Post date:** [May 17, 2020, 3:03am UTC](https://forum.alpaca.markets/t/python-how-to-convert-19-digit-timestamp-from-alpaca-data-api/1469/1 "2020-05-17T03:03:56Z")

</div>

Hi Alpaca Forum,

How can I convert the 19 digit timestamp from the Alpaca Data API, e.g. 1589575335935000064?

Thank you for your support!

---

<div class="post-metadata">

**Author:** ![hitoshi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hitoshi/32/69_2.png) [@hitoshi](https://forum.alpaca.markets/u/hitoshi)\
**Post date:** [May 19, 2020, 7:04pm UTC](https://forum.alpaca.markets/t/python-how-to-convert-19-digit-timestamp-from-alpaca-data-api/1469/2 "2020-05-19T19:04:20Z")

</div>

If you are talking about python, and have pandas installed, then the answer is `pd.Timestmap(val)`

---

<div class="post-metadata">

**Author:** ![James99](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@James99](https://forum.alpaca.markets/u/James99)\
**Post date:** [May 19, 2020, 8:57pm UTC](https://forum.alpaca.markets/t/python-how-to-convert-19-digit-timestamp-from-alpaca-data-api/1469/3 "2020-05-19T20:57:02Z")

</div>

Hi Hitoshi,

Thank you so much for your help. This gets me one step closer to start using Alpaca for algorithmic trading.

I have two additional questions:

- List item Are there are any plans of making it possible to use websockets in Europe (Sweden to be exact)

- List item We have special investments accounts in Sweden that means we pay no capital tax. However, if I have my money with Alpaca, I would have to pay capital tax in Sweden. Any plans of making Alpaca available in other countries?
