Hello All,
I have the following problem: I read from a file a line that I put in a variable of type TString, now I would like to convert this variable in a TDatime; is this possible ?
Here is some of my code:
...
char temp[100];
TString time = "time";
TString * line = new TString(temp);
if( line->BeginsWith("$DATE") )
{ input.getline(temp,256); time.ReplaceAll("time",temp); TDatime day_hour("time");
When I run the script I have the following error:
Error in <TDatime(sqlDatTime)>: input string not in right format, set to current date/time
The line with the date is in the following format: 11/18/2011 08:36:49
My ROOT version is 5.30/02 on osx Lion
Is there anyone that can help me ?
Thank in advance
Francesco.
Received on Mon Nov 28 2011 - 13:35:16 CET
This archive was generated by hypermail 2.2.0 : Tue Nov 29 2011 - 17:50:02 CET