Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 31-07-2008, 08:48 PM   #1 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default How to know and use the time & date in programme ?


How to know and use the time & date in programme ?

all must have understood it but to clear it........current date and time

in c and c++ ?
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer

Last edited by clmlbx; 31-07-2008 at 09:04 PM.
clmlbx is online now  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 31-07-2008, 09:39 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2006
Posts: 33
Default Re: How to know and use the time & date in programme ?

Quote:
Originally Posted by clmlbx View Post
How to know and use the time & date in programme ?

all must have understood it but to clear it........current date and time

in c and c++ ?
we mostly do use current date n time to make it act like a timestamp..... it can be used to calulate to total time requried 4 processing a particilar function or ne other code.... we can do tat by subtracting the current time before the code frm the current time after the code.. so wat u get is the time it took to run the code in millisec.... cos in C/C++ we get time stamp in millisec.....
Saket Parekh is offline  
Old 01-08-2008, 10:11 AM   #3 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default Re: How to know and use the time & date in programme ?

no I want to use it in programme as ..
make calculation of ..difference of days,months,years,time.

using current time and one specified in programme..
something like that
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer
clmlbx is online now  
Old 03-08-2008, 10:17 AM   #4 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: How to know and use the time & date in programme ?

http://www.dreamincode.net/forums/showtopic27088.htm
http://www.cplusplus.com/reference/clibrary/ctime/
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting time and date automatically using htc3400??? x3060 Mobiles and Tablets 4 27-05-2008 12:55 AM
iPod doesn't have India in it's Date/Time settings page Zeeshan Quireshi Technology News 24 08-06-2007 12:59 AM
Capture Video with Date & Time??? go4saket Software Q&A 2 19-05-2007 12:41 AM
Time/Date Setting in MoBo freezer CPU / Motherboards 2 21-11-2006 01:13 AM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2