Home > classes > @time > string.m

string

PURPOSE ^

STRING writes a command string that can be used to recreate the input time object.

SYNOPSIS ^

function cmd = string(tt)

DESCRIPTION ^

 STRING writes a command string that can be used to recreate the input time object.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: STRING writes a command string that can be used to recreate the
              input time object.

 CALL:        cmd = string(pole);

 VERSION:     $Id: string.m,v 1.1 2007/08/07 13:58:29 ingo Exp $

 HISTORY:     07-08-2007 Diepholz
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cmd = string(tt)
0002 % STRING writes a command string that can be used to recreate the input time object.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: STRING writes a command string that can be used to recreate the
0007 %              input time object.
0008 %
0009 % CALL:        cmd = string(pole);
0010 %
0011 % VERSION:     $Id: string.m,v 1.1 2007/08/07 13:58:29 ingo Exp $
0012 %
0013 % HISTORY:     07-08-2007 Diepholz
0014 %                 Creation
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 
0018 cmd = '[';
0019 for jj=1:length(tt)
0020 
0021   pl = plist();
0022   pl = append(pl, 'timeformat',      char(tt(jj).timeformat));
0023   pl = append(pl, 'timezone',        char(tt(jj).timezone.getID));
0024   pl = append(pl, 'utc_epoch_milli', tt(jj).utc_epoch_milli);
0025   
0026   cmd = [cmd ' time(' string(pl) ')'];
0027 
0028 end
0029 cmd = [cmd ']'];
0030 
0031 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003