Home > freetb4matlab > time > x2mdate.m

x2mdate

PURPOSE ^

%

SYNOPSIS ^

function dates = x2mdate (dates, convention, excelbug)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {datenums =} x2mdate (exceldatenums)
% @deftypefnx {Function File} {datenums =} x2mdate (exceldatenums, convention)
% @deftypefnx {Function File} {datenums =} x2mdate (exceldatenums, convention, 'ExcelBug')
%
% Convert @var{datenums} from the Microsoft Excel date format to the
% format used by @code{datenum}.  If set to 0 (default, Excel for
% Windows), @var{convention} specifies to use the Excel 1900 convention
% where Jan 1, 1900 corresponds to Excel serial date number 1.  If set
% to 1 (Excel for Mac), @var{convention} specifies to use the Excel
% 1904 convention where Jan 1, 1904 corresponds to Excel serial date
% number 0.
%
% Note that this does not take into account the Excel bug where 1900 is
% considered to be a leap year unless you give the 'ExcelBug' option.
%
% Excel does not represent dates prior to 1 January 1900 using this
% format, so a warning will be issued if any dates preceed this date.
%
% @seealso{datenum, x2mdate}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003