Changeset 14418
- Timestamp:
- 09/20/12 18:00:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/tngweather.cc
r14009 r14418 174 174 w.fTemp10M = stof(obj); 175 175 if (id=="date") 176 { 176 177 time.SetFromStr(obj, "%Y-%m-%dT%H:%M:%S"); 178 179 if (!time.IsValid()) 180 { 181 struct tm tm; 182 183 vector<char> buf(255); 184 if (strptime(obj.c_str(), "%c", &tm)) 185 time = Time(tm.tm_year+1900, tm.tm_mon, tm.tm_mday, 186 tm.tm_hour, tm.tm_min, tm.tm_sec); 187 } 188 } 177 189 178 190 /*
Note:
See TracChangeset
for help on using the changeset viewer.