Best regards, I have a question, I appreciate your kind support:
using namespace std;
int main(int argc, char *argv[])
{
//Fecha basado en el sistema actual de Sistema operativo
time_t now= time(0); // captura fecga y hora actual
tm *time =localtime(&now); //ceamo el puntero time y se referencia objeto time y se guarda en var now
cout << "Dia de la semana:" << time->tm_wday << endl; //accedemos al objeto time y miemto
system("Pause");
return 0;
}
The question is how I send the date and time to a variable in c ++