I would like to know how to subtract dates and know the days and hours apart from one date to another in Processing.
for example:
the day: 2012/06/05 13:00 hours
subtract
date: 2012/05/18 13:00 hours
Result is 18 days and 0 hours
Clearly you can not do a subtraction normal because when you change month and does not reflect the result ....
For example: 201206050000
-
201205180000
---------------------
Results: 870,000??
If you subtract the date format with a calendar on hand if you get to see that they are 18 days ...
The last 4 zeros in the subtraction is minutes (00) and second (00) ..
thanks
for example:
the day: 2012/06/05 13:00 hours
subtract
date: 2012/05/18 13:00 hours
Result is 18 days and 0 hours
Clearly you can not do a subtraction normal because when you change month and does not reflect the result ....
For example: 201206050000
-
201205180000
---------------------
Results: 870,000??
If you subtract the date format with a calendar on hand if you get to see that they are 18 days ...
The last 4 zeros in the subtraction is minutes (00) and second (00) ..
thanks
1