Home > atmlab > deprecated > find_datafile_by_unixtime.m

find_datafile_by_unixtime

PURPOSE ^

find_datafile_by_unixtime Return full path of datafile by unixtime

SYNOPSIS ^

function datafile = find_datafile_by_unixtime(unixtime, varargin)

DESCRIPTION ^

 find_datafile_by_unixtime Return full path of datafile by unixtime

 Like find_datafile_by_date, but takes a unix timestamp rather than five
 arguments specifying year, month, day, hour, and minute.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

find_datafile_by_unixtime.m

SOURCE CODE ^

0001 function datafile = find_datafile_by_unixtime(unixtime, varargin)
0002 
0003 % find_datafile_by_unixtime Return full path of datafile by unixtime
0004 %
0005 % Like find_datafile_by_date, but takes a unix timestamp rather than five
0006 % arguments specifying year, month, day, hour, and minute.
0007 
0008 % $Id: find_datafile_by_unixtime.m 7553 2012-04-27 19:08:16Z gerrit $
0009 
0010 [year month day hour minute second] = unixsecs2date(unixtime);
0011 if (60-second) < 0.1
0012     logtext(atmlab('OUT'), 'WARNING: second=%.16f. Correcting to next minute!\n', second);
0013     minute = minute+1;
0014 end
0015 datafile = find_datafile_by_date([year, month, day, hour, minute], varargin{:});

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005