dateVectorToSeconds.m 618 Bytes
function [seconds]=dateVectorToSeconds(dateVector)
% function [seconds]=dateVectorToSeconds(dateVector)
% 
% This function converts timeVector to seconds
% 
% Input parameters:
%   dateVector-> time in date vector format
%	
% Output parameters:
%   seconds-> time equivalent to dateVector in seconds
% 
% Author: Antonio C. Domí­nguez Brito (adominguez@iusiani.ulpgc.es)
% Institution: SIANI-ULPGC (www.iusiani.ulpgc.es)
% Date: April 24th 2008

if size(dateVector,2)<6
	fprinft('WARNING: Doing nothing. Input argument is not a date vector.\n');
end

seconds=daysact(datenum('1/1/2000'),datenum(dateVector))*24*60*60;