how can i get the time and the date from the pc and store it in variable ???
eg :
i wan to assign the current time which is 4.15pm to timex variable and 19/08/2004 which is today's date to datex variable. How i can archieve this ?
how can i get the time and the date from the pc and store it in variable ???
eg :
i wan to assign the current time which is 4.15pm to timex variable and 19/08/2004 which is today's date to datex variable. How i can archieve this ?
sfmttime( str, sizeof(str)-1,
"1) It's %A, %B %d\n", &today );
I tried using the following function to store the string into str but i got the following error msg
Message.cpp: In method `TSMessage::TSMessage()':
Message.cpp:94: implicit declaration of function `int sfmttime(...)'
make: *** [Message.o] Error 1
Why does this happend ??
> Why does this happend ??
Because you can't spell strftime properly
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.