Mercurial > hg > ltpda
comparison m-toolbox/test/xml_tests/test_timeformat.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 clear all; | |
2 | |
3 default_matlab_str = 'yyyy-mm-dd HH:MM:SS'; | |
4 default_matlab_nr = 31; | |
5 default_java_str = 'yyyy-MM-dd HH:mm:ss'; | |
6 | |
7 tf1 = timeformat(getappdata(0, 'time_format_str'),... | |
8 default_matlab_str,... | |
9 default_matlab_nr,... | |
10 default_java_str); | |
11 | |
12 | |
13 xmlfile = 'timeformat.xml'; | |
14 save(tf1, xmlfile); | |
15 | |
16 % load | |
17 tf2 = timeformat(xmlfile); | |
18 | |
19 if tf1 ~= tf2 | |
20 error('### timeformats are not the same') | |
21 end | |
22 |