 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jaiswal Guest
|
Posted: Thu Feb 22, 2007 10:12 am Post subject: [comp.lang.c.moderated] |
|
|
Hello Everybody can we manipulate with system date and time through c
language, if yes then how?
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
nandu Guest
|
Posted: Sun Feb 25, 2007 10:11 am Post subject: Re: [comp.lang.c.moderated] |
|
|
On Feb 22, 12:49 pm, "Jaiswal" <vijay_myin...@rediffmail.com> wrote:
| Quote: | Hello Everybody can we manipulate with system date and time through c
language, if yes then how?
--
comp.lang.c.moderated - moderation address: c...@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
you can use time structure and can access the time of the system and
don't forget to include time.h and sometimes you may need to include
dos.h i'm your new freind
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Feb 25, 2007 10:11 am Post subject: Re: [comp.lang.c.moderated] |
|
|
On Feb 21, 11:49 pm, "Jaiswal" <vijay_myin...@rediffmail.com> wrote:
| Quote: | Hello Everybody can we manipulate with system date and time through c
language, if yes then how?
--
comp.lang.c.moderated - moderation address: c...@plethora.net
|
yes you can bellow is the code:
#include <stdio.h>
#include <time.h>
int main()
{
time_t cur_time;
time(&cur_time);
printf("System date and time : %s",ctime(&cur_time));
getchar();
return 0;
}
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group
|