#include <Core/Core.h> #include <time.h> using namespace Upp; CONSOLE_APP_MAIN { time_t scalar = time(0); // seconds since 1/1/1970 00:00:00 Time back; back.Set(scalar); Cout() << "The time is: " << asctime(localtime(&scalar)) << "\n"; // oldskool functions Cout() << "Scalar = " << scalar << "\n"; Cout() << "Converted back = " << back << "\n"; }
[Updated on: Tue, 10 September 2013 20:55]
Report message to a moderator