function [dt] = datetime(seconds)
% Spits out the date and time in yymmdd_HHMM format % % [dt] = datetime([seconds]) % % The advantage of this is that alphabetic order is also % chronological). % % If SECONDS = true, adds _SS at the end (defaults to false).
% This is part of the Princeton MVPA toolbox, released under the % GPL. See http://www.csbmb.princeton.edu/mvpa for more % information.
if ~exist(‘seconds’,’var’) seconds = false; end
if seconds dt = datestr(now,’yymmdd_HHMM_SS’); else dt = datestr(now,’yymmdd_HHMM’); end
Home - Blog - Startups - Software - Research - Writing
Email me - updated 31 Dec 2012