<div dir="ltr"><div>Hi Leila (and Arjen):<br><br></div>I just tried this out with a sample file, it looks like you can get this information if you use ft_read_header() rather than ft_preprocessing. The cfg structure I got from ft_preprocessing didn't contain the time-of-day information, but the structure returned from ft_read_header did:<br><br>>> hdr = ft_read_header( cfg.dataset ); hdr.orig.T0<br><br>ans =<br><br>        2005           9          15          10          18          42<br><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><div><br><br></div><div>I assume that's showing year, month, day, hour, minute (presumably based on the clock of the computer that made the recording).<br><br></div><div>Best,<br></div><div>Steve<br></div><div><br>---<br></div>Stephen Politzer-Ahles<br>University of Oxford<br>Language and Brain Lab<br>Faculty of Linguistics, Phonetics & Philology<br><a href="http://users.ox.ac.uk/~cpgl0080/" target="_blank">http://users.ox.ac.uk/~cpgl0080/</a></span></div></div></div></div></div></div></div>
<div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Message: 3<br>
Date: Tue, 9 Feb 2016 15:40:35 +0000 (UTC)<br>
From: Leila Ayoubian <<a href="mailto:leilayou_54@yahoo.com">leilayou_54@yahoo.com</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: Re: [FieldTrip] importing large edf data<br>
Message-ID:<br>
        <<a href="mailto:1722640118.1244946.1455032435939.JavaMail.yahoo@mail.yahoo.com">1722640118.1244946.1455032435939.JavaMail.yahoo@mail.yahoo.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thanks.I need to retrieve the time when the recordings occure and I don't see it. I get the Fs but no more.I am using this code :<br>
cfg = [];cfg.trl = [1 1000000 0];%cfg.trl = [100001 2000000 0];%cfg.trialdef.triallength = 5;cfg.dataset =fileName; %'For leila.edf';cfg= ft_definetrial( cfg );cfg.continuous = 'yes';<br>
datastr = ft_preprocessing(cfg);data=datastr.trial{1,1};chanls=datastr.label;Fs=datastr.fsample;<br>
and getting this?datastr =?<br>
? ? ? ? ? ?hdr: [1x1 struct]? ? ? ? ?label: {65x1 cell}? ? ? ? ? time: {[1x1000000 double]}? ? ? ? ?trial: {[65x1000000 double]}? ? ? ?fsample: 1024? ? sampleinfo: [1 1000000]? ? ? ? ? ?cfg: [1x1 struct]<br>
<br>
cfg =?<br>
? ? ? ? ? ? ? ? ? trl: [1 1000000 0]? ? ? ? ? ? ? dataset: 'Event13_Seizure_triggered_by_cortical_stim_Segment_1.edf'? ? ? ? ? trackconfig: 'off'? ? ? ? ? checkconfig: 'loose'? ? ? ? ? ? checksize: 100000? ? ? ? ?showcallinfo: 'yes'? ? ? ? ? ? ? ? debug: 'no'? ? outputfilepresent: 'overwrite'? ? ? ? trackcallinfo: 'yes'? ? ? ? trackdatainfo: 'no'? ? ? ? ? ? ?callinfo: [1x1 struct]? ? ? ? ? ? ? version: [1x1 struct]? ? ? ? ? ? ?datafile: 'Event13_Seizure_triggered_by_cortical_stim_Segment_1.edf'? ? ? ? ? ?headerfile: 'Event13_Seizure_triggered_by_cortical_stim_Segment_1.edf'? ? ? ? ? ?dataformat: 'edf'? ? ? ? ?headerformat: 'edf'? ? ? ? ? ? ? ? event: []? ? ? ? ? ?continuous: 'yes'<br>
<br>
?__________________________________________________ Leila Ayoubian, PhD.<br>
Institute of Psychiatry, Psychology and Neuroscience<br>
King's College London<br>
<br>
<br>
<br>
<br>
      From: Arjen Stolk <<a href="mailto:a.stolk8@gmail.com">a.stolk8@gmail.com</a>><br>
 To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
 Sent: Tuesday, February 9, 2016 3:32 PM<br>
 Subject: Re: [FieldTrip] importing large edf data<br>
<br>
Hi both,There might be information on the date and time of recording in the orig field of the header, if that's what you're looking for. Don't know the name of the subfield from the top of my head.Arjen<br><br></blockquote></div><br></div></div></div></div>