Server time to Unix and compare
-
Hi all. I need some help.
I am storing expiration time (binary options) in Unit format.
Example:
date_expiry: 1570951168
So I need to check status of current trade when the current (server time ) is > than date_expiry
There two questions.- Will it work if I convert ( don't know how for now current server time to Unix format ) current server time to Unix format and then will use the formula: current server time ( Unix) > than date_expiry, than ...
- How to store current server time into a variable ( know how to store but don't know how to convert ) in Unix format?
Thank you.
-
Figured this out.
And it works!
Thx -
Hi
What is You're solution? -
TimeToString(1570951168,TIME_DATE|TIME_MINUTES) ...will give you that value as a string