|
|
|
|
|
|
|
|
if(isValidGMT) {
|
|
|
if(isValidGMT) {
|
|
|
TimestampBfr
|
|
|
TimestampBfr
|
|
|
<< setw(4) << (gmt->tm_year+1900)
|
|
|
<< setw(4) << (gmt->tm_year+1900)
|
|
|
<< setw(2) << setfill('0')
|
|
|
|
|
|
<< (gmt->tm_mon+1)
|
|
|
|
|
|
<< (gmt->tm_mday)
|
|
|
|
|
|
<< (gmt->tm_hour)
|
|
|
|
|
|
<< (gmt->tm_min)
|
|
|
|
|
|
<< (gmt->tm_sec);
|
|
|
|
|
|
|
|
|
<< setw(2) << setfill('0') << (gmt->tm_mon+1)
|
|
|
|
|
|
<< setw(2) << setfill('0') << (gmt->tm_mday)
|
|
|
|
|
|
<< setw(2) << setfill('0') << (gmt->tm_hour)
|
|
|
|
|
|
<< setw(2) << setfill('0') << (gmt->tm_min)
|
|
|
|
|
|
<< setw(2) << setfill('0') << (gmt->tm_sec)
|
|
|
|
|
|
;
|
|
|
theTimeStamp = TimestampBfr.str();
|
|
|
theTimeStamp = TimestampBfr.str();
|
|
|
}
|
|
|
}
|
|
|
return theTimeStamp; // Return a string. |
|
|
return theTimeStamp; // Return a string. |