Home > freetb4matlab > time > datevec.m

datevec

PURPOSE ^

% Convert a serial date number (see @code{datenum}) or date string (see

SYNOPSIS ^

function [y, m, d, h, mi, s] = datevec (date, varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{v} =} datevec (@var{date})
% @deftypefnx {Function File} {@var{v} =} datevec (@var{date}, @var{f})
% @deftypefnx {Function File} {@var{v} =} datevec (@var{date}, @var{p})
% @deftypefnx {Function File} {@var{v} =} datevec (@var{date}, @var{f}, @var{p})
% @deftypefnx {Function File} {[@var{y}, @var{m}, @var{d}, @var{h}, @var{mi}, @var{s}] =} datevec (@dots{})
% Convert a serial date number (see @code{datenum}) or date string (see
% @code{datestr}) into a date vector.
%
% A date vector is a row vector with six members, representing the year,
% month, day, hour, minute, and seconds respectively.
%
% @var{f} is the format string used to interpret date strings
% (see @code{datestr}).
%
% @var{p} is the year at the start of the century in which two-digit years
% are to be interpreted in.  If not specified, it defaults to the current
% year minus 50.
% @seealso{datenum, datestr, date, clock, now}
% @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