Apr 9, 2003 #1 MahalKoCjet Programmer Joined Mar 5, 2003 Messages 12 Location PH Hi gurus, How could I get the current Date from the server? Tenyks in advance
Apr 10, 2003 #2 newbieKing Programmer Joined Jan 29, 2003 Messages 19 Location CA I'm not sure if this helps... you can get the time from the os by using this: #include <math.h> #include <conio.h> #include <iomanip> #include <fstream> #include <iostream> #include <string> #include <stdio.h> #include <vector> #include <stdlib.h> #include <assert.h> #include <time.h> using namespace std; void main() { char tmpbuf[128]; cout << "Time: " << _strtime( tmpbuf ) << endl; cout << "Date: " << _strdate( tmpbuf ) << endl; } Upvote 0 Downvote
I'm not sure if this helps... you can get the time from the os by using this: #include <math.h> #include <conio.h> #include <iomanip> #include <fstream> #include <iostream> #include <string> #include <stdio.h> #include <vector> #include <stdlib.h> #include <assert.h> #include <time.h> using namespace std; void main() { char tmpbuf[128]; cout << "Time: " << _strtime( tmpbuf ) << endl; cout << "Date: " << _strdate( tmpbuf ) << endl; }