O
O
Oleg Petrov2018-11-03 12:00:41
Python
Oleg Petrov, 2018-11-03 12:00:41

What does last_update number 1537233536 mean?

I take the line last_update in the documentation there is a type: ts. Api gives the number 1537233536. What is this number and how to convert to a regular date using Python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-11-03
@Smeilz1

This is the number of seconds from zero

>>> import datetime
>>> datetime.datetime.fromtimestamp(1537233536).strftime("%d.%m.%Y %H:%M:%S")
'18.09.2018 05:18:56'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question