Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+3 -3
View File
@@ -11,13 +11,13 @@
namespace tools {
inline bool s2time(const std::string& a_string,time_t& a_time) {
int yy, mm, dd, hh, mi, ss;
int yy, _mm, dd, hh, mi, ss;
if(::sscanf(a_string.c_str(),
"%d-%d-%d %d:%d:%d",
&yy,&mm,&dd,&hh,&mi,&ss)!=6) {a_time = 0;return false;}
&yy,&_mm,&dd,&hh,&mi,&ss)!=6) {a_time = 0;return false;}
struct tm tp;
tp.tm_year = yy-1900;
tp.tm_mon = mm-1;
tp.tm_mon = _mm-1;
tp.tm_mday = dd;
tp.tm_hour = hh;
tp.tm_min = mi;