Calculate_Time_Interval

所属分类:图形图像处理
开发工具:matlab
文件大小:8KB
下载次数:13
上传日期:2012-01-05 15:02:39
上 传 者dhinesh007
说明:  EEG classification using Gui 2

文件列表:
DateDiff.m (2105, 2011-01-16)
adjustUnits2.m (205, 2010-11-01)
daysinmonth.m (697, 2010-11-01)
daysinyear.m (340, 2010-11-01)
givesTheEarlierTime.m (863, 2010-11-01)
isleapyear.m (812, 2010-11-01)
leapDayHasPassed.m (483, 2010-11-01)
license.txt (1333, 2011-01-16)
sec2hms.m (466, 2010-11-01)
timeDifference.m (5668, 2010-12-09)
usage_timeDifference.m (4208, 2011-01-16)

Calculate Time Interval -------------------------------------- main executing reference usage: usage_timeDifference.m Sample output: The time interval between earierTime [09-Sep-1900 09:09:18] and laterTime [31-Oct-2010 23:33:08] is 110 years, 79 days, 14 hours, 23 mins, 50.17 secs. The objective is to compute the time interval taking into account the leap days that are subsumed within the time interval. Note: The logic subsumes the time interval by yearEnd, monthEnd, dayEnd - timeEarlier (within that year) + time interval (excluding that 2 years) + timeLater - yearEnd, monthEnd, dayEnd (within that year) It differentiates the earlier time and later time, ie. timeDifference (earlierTime, laterTime) gives the same result as timeDifference (laterTime, earlierTime). leapDayHasPassed.m illustrates a possible approach to determine if a certain day of concern is already over at a given time. Caveat: does not include leap secs If the reference demo has a more elegant presentation, please do not hesitate to suggest and send feedback to author. Email: promethevx@yahoo.com. Thank you. Regards, Michael Chan JT -------------------------------------- EOF --------------------------------------

近期下载者

相关文件


收藏者