Controlled Posted August 2, 2014 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?
Controlled Posted August 2, 2014 Author 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?
cheez3d Posted August 2, 2014 Posted August 2, 2014 You can use timestamps and then convert the difference to normal time.
Controlled Posted August 2, 2014 Author Posted August 2, 2014 You can use timestamps and then convert the difference to normal time. How can I do that?
Max+ Posted August 2, 2014 Posted August 2, 2014 Check this , https://forum.multitheftauto.com/viewtopic.php?f ... 0&p=680002
Addlibs Posted August 2, 2014 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
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