Controlled Posted August 2, 2014 Share Posted August 2, 2014 I'm wondering how I can find the amount of days that passed between two different dates. For example 2014-07-02 00:00:00 - Compared to now() How can I get output in days? Link to comment
Controlled Posted August 2, 2014 Author Share Posted August 2, 2014 Sure that works for finding the current time. But how can I compare that time with the format I posted above? Link to comment
cheez3d Posted August 2, 2014 Share Posted August 2, 2014 You can use timestamps and then convert the difference to normal time. Link to comment
Controlled Posted August 2, 2014 Author Share Posted August 2, 2014 You can use timestamps and then convert the difference to normal time. How can I do that? Link to comment
Max+ Posted August 2, 2014 Share Posted August 2, 2014 Check this , https://forum.multitheftauto.com/viewtopic.php?f ... 0&p=680002 Link to comment
Addlibs Posted August 2, 2014 Share Posted August 2, 2014 Use https://wiki.multitheftauto.com/wiki/getTimestamp useful function to convert calendar date to timestamp and then compare to getRealTime().timestamp Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now