Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Data::Data(){
- //CAPTURAR DATA ATUAL DO SISTEMA E INICIALIZAR
- time_t theTime = time(NULL);
- struct tm *aTime = localtime(&theTime);
- dia = aTime->tm_mday;
- mes = aTime->tm_mon + 1; // Month is 0 - 11, add 1 to get a jan-dec 1-12 concept
- ano = aTime->tm_year + 1900; // Year is # years since 1900
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement