C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[comp.lang.c.moderated]

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated)
View previous topic :: View next topic  
Author Message
Jaiswal
Guest





PostPosted: Thu Feb 22, 2007 10:12 am    Post subject: [comp.lang.c.moderated] Reply with quote



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





PostPosted: Sun Feb 25, 2007 10:11 am    Post subject: Re: [comp.lang.c.moderated] Reply with quote



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






PostPosted: Sun Feb 25, 2007 10:11 am    Post subject: Re: [comp.lang.c.moderated] Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.