** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: if2img.cpp,v 1.4 2000/06/13 16:20:31 kevin Exp $
+** $Id: if2img.cpp,v 1.5 2000/06/17 20:12:15 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
for (int i = 0; i < nlabels; i++) {
Array2dFileLabel label;
im.labelRead (label, i);
- string str;
- label.getDateString (str);
if (label.getLabelType() == Array2dFileLabel::L_HISTORY) {
cout << "History: " << label.getLabelString() << endl;
cout << " calc time = " << label.getCalcTime() << " secs" << endl;
- cout << " Timestamp = " << str << endl;
+ cout << " Timestamp = " << label.getDateString() << endl;
} else if (label.getLabelType() == Array2dFileLabel::L_USER) {
cout << "Note: " << label.getLabelString() << endl;
- cout << " Timestamp = %s" << str << endl;
+ cout << " Timestamp = %s" << label.getDateString() << endl;
}
}
}