Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to convert the waves timestamp #4

Closed
arnezt opened this issue Jun 22, 2019 · 2 comments
Closed

how to convert the waves timestamp #4

arnezt opened this issue Jun 22, 2019 · 2 comments

Comments

@arnezt
Copy link

arnezt commented Jun 22, 2019

I am still not get the date format for waves timestamp more than 10 digits, something like this: 1561174381555 as I know In PHP date format just 10 digits. I have try to use:
date('Y-m-d H:i:s T') but the output: 51441-08-25 05:25:55 WIB
but if I substr 3 digit from behind 1561174381(555) the output: 2019-06-22 10:33:01 WIB
what is the actual date format for waves timestamp?
Thank you.

@deemru
Copy link
Owner

deemru commented Jun 23, 2019

  • waves timestamp in milliseconds
  • php date timestamp in seconds
  • divide waves timestamp by 1000 (or do substr, as you wish)

@arnezt
Copy link
Author

arnezt commented Jun 23, 2019

Thank you very much for your response. I will use the first option that divided by 1000

@arnezt arnezt closed this as completed Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants