0001 function xml = xml_add_time(xml, tt, node_name, node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 el = xml.docNode.createElement(node_name);
0012
0013
0014 elc = xml.docNode.createElement('utc_epoch_milli');
0015 elc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(get(tt, 'utc_epoch_milli'))));
0016 el.appendChild(elc);
0017
0018
0019 elc = xml.docNode.createElement('timezone');
0020 timezone = get(tt, 'timezone');
0021 elc.appendChild(xml.docNode.createTextNode(char(timezone.getID)));
0022 el.appendChild(elc);
0023
0024
0025 xml = xml_add_timeformat(xml, get(tt, 'timeformat'), el);
0026
0027
0028 elc = xml.docNode.createElement('time_str');
0029 elc.appendChild(xml.docNode.createTextNode(get(tt, 'time_str')));
0030 el.appendChild(elc);
0031
0032 node.appendChild(el);
0033
0034
0035
0036