Mercurial > hg > map
view utilities/Util_timeStamp.m @ 34:e097e9044ef6
new compression and ne prob refractory
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Fri, 19 Aug 2011 16:07:07 +0100 |
parents | 161913b595ae |
children |
line wrap: on
line source
function timeStamp=UTIL_timeStamp % returns a string showing time now and current date % the string should be suitable for creating fileNames % i.e. no ':' and no'-' characters today=date; idx=findstr('-',today); today(idx)='_'; timeNow=clock; timeNow=[num2str(timeNow(4)) ':' num2str(timeNow(5))]; idx=findstr(':',timeNow); timeNow(idx)='_'; timeStamp=[timeNow 'hr' today ];