Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -27,6 +27,15 @@ inline bool s2time(const std::string& a_string,time_t& a_time) {
return true;
}
inline bool time2s(std::string& a_s) {
time_t d;
if(::time(&d)==(time_t)-1) {a_s.clear();return false;}
char* _cstr = ::ctime(&d);
_cstr[24] = '\0';
a_s = _cstr;
return true;
}
}
#endif