Prev: Robust control
Next: Area inside a closed curve
From: Jan Simon on 3 Aug 2010 10:51 Dear Judy, > Real time: 7/23/2010 23:12:23 > Relative time: 56 hrs 23 minutes 26 seconds > Real time + relative time = ? RealTime = datenum('7/23/2010 23:12:23', 'mm/dd/yyyy HH:MM:SS'); RelativeTime = ([56, 23, 26] * [3600; 60; 1]) / 86400; NextTime = RealTime + RelativeTime; Note: The fractional part of the DATENUM format is the seconds divided by the number of seconds of 24 hours. The integer part of the DATENUM is the number of day since 00-Jan-0000 (funny definition - but easier to handle than 01-Jan-0001). See also: "edit etime". Good luck, Jan |