Home > freetb4matlab > time > m2xdate.m

m2xdate

PURPOSE ^

%

SYNOPSIS ^

function dates = m2xdate (dates, convention, excelbug)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {exceldatenums =} m2xdate (datenums)
% @deftypefnx {Function File} {exceldatenums =} m2xdate (datenums, convention)
% @deftypefnx {Function File} {exceldatenums =} m2xdate (datenums, convention, 'ExcelBug')
%
% Convert @var{datenums} from the internal date format to the format
% used by Microsoft Excel.  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