Mercurial > hg > map
view utilities/Util_timeStamp.m @ 38:c2204b18f4a2 tip
End nov big change
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Mon, 28 Nov 2011 13:34:28 +0000 |
parents | e097e9044ef6 |
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 ];