C++ Help!!!!
(ECMAScript) At midnight at the beginning of 01 January, 1970UTC is represented by the value zero.
//code starts here
const long long int msPerDay = 86400000;
int TimeWithinDay(long long int t);
int TimeFromYear(int y);
using namespace std;int main() {cout << “TimeWithinDay(2*msPerDay) should return ? The result is: ” << TimeWithinDay(2*msPerDay) << endl;cout << “TimeFromYear(1970) should return ? The result is: ” << TimeFromYear(1970) << endl;cout << “TimeFromYear(1971) should return 365*msPerDay < t. The result is: ” << TimeFromYear(1971) << endl;
return 0;
}
int TimeWithinDay(long long int t){ return static_cast(static_cast(t)%msPerDay);}int TimeFromYear(int y){ return static_cast(msPerDay*DaysFromYear(y));}
Expert Answer
An answer will be
PayPal Gateway not configured
PayPal Gateway not configured