Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
barkalez
barkalez's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Subtract dates in Arduino with Processing
[5 Replies]
09-May-2012 05:06 AM
Forum:
General Discussion
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
«Prev
Next »
Moderate user : barkalez
Forum