Embedded C/C++

Moderators: Lundin
Number of threads: 199
Number of posts: 374

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C code To get the current system time Posted by lsingh on 12 Nov 2007 at 4:33 AM
Hi All,

Can somebody please provide me with the free sample code to get the current system timings? Our product has a copy right, that needs to be updated each time with the current year (Hard coded). I need to modify this such that it automatically updates the copy right to current year.

Awaiting for quick responses.

Thank you.
Report
Re: C code To get the current system time Posted by Lundin on 12 Nov 2007 at 4:55 AM
We have a policy against posters asking for code without any effort made by themselves. You could however ask for help about how to solve a specific problem, though you will have to write the code yourself.

Further, you need to specify which system and compiler you are using, or nobody will be able to help you. There are thousands of different embedded systems and hundreds of compilers.
Report
Re: C code To get the current system time Posted by lsingh on 12 Nov 2007 at 10:05 PM
: We have a policy against posters asking for code without any effort
: made by themselves. You could however ask for help about how to
: solve a specific problem, though you will have to write the code
: yourself.
:
: Further, you need to specify which system and compiler you are
: using, or nobody will be able to help you. There are thousands of
: different embedded systems and hundreds of compilers.

Hi, I am using a DOS machine. There is no compiler as such, but I am using an editor called codeWright & codeView debugger. Thanks!!
Report
Re: C code To get the current system time Posted by Lundin on 13 Nov 2007 at 12:33 AM
I take it that you mean you will only be using ANSI C? Since you must have a compiler to make C programs. Check out the functions clock(), time() and gmtime().
Report
Re: C code To get the current system time Posted by stars_625 on 18 Jul 2008 at 10:41 PM
: Hi All,
:
: Can somebody please provide me with the free sample code to get
: the current system timings? Our product has a copy right, that needs
: to be updated each time with the current year (Hard coded). I need
: to modify this such that it automatically updates the copy right to
: current year.
:
: Awaiting for quick responses.
:
: Thank you.
:

word on DOS, you can use the DOS System Function Lib, Include "system.h" and so on!



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.