Within DateFromTimeInSeconds(), remove embedded C++ function and convert DateFromTimeInSeconds() to a C++ itself.