Import Geant4 11.1.0.beta source tree
This commit is contained in:
+7
-7
@@ -28,13 +28,13 @@ inline date get_date(){
|
||||
struct tm tpa;
|
||||
struct tm *tp = (tm*)::localtime_r(&tloc, &tpa); //does not exist on Windows.
|
||||
#endif
|
||||
unsigned int year = tp->tm_year;
|
||||
unsigned int month = tp->tm_mon + 1;
|
||||
unsigned int day = tp->tm_mday;
|
||||
unsigned int hour = tp->tm_hour;
|
||||
unsigned int min = tp->tm_min;
|
||||
unsigned int sec = tp->tm_sec;
|
||||
return ((year-95)<<26 | month<<22 | day<<17 | hour<<12 | min<<6 | sec);
|
||||
unsigned int _year = tp->tm_year;
|
||||
unsigned int _month = tp->tm_mon + 1;
|
||||
unsigned int _day = tp->tm_mday;
|
||||
unsigned int _hour = tp->tm_hour;
|
||||
unsigned int _min = tp->tm_min;
|
||||
unsigned int _sec = tp->tm_sec;
|
||||
return ((_year-95)<<26 | _month<<22 | _day<<17 | _hour<<12 | _min<<6 | _sec);
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user