DIGIT-ARC read-only archive · snapshot: July 23, 2026

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

4 posts · originally from https://geek.digit.in/community/threads/how-to-know-and-use-the-time-date-in-programme.94541/

clmlbx
clmlbx Original post #1
Jul 31, 2008 at 8:48 PM
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++ ?
S
Jul 31, 2008 at 9:39 PM
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.....
clmlbx
clmlbx #3
Aug 1, 2008 at 10:11 AM
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
dheeraj_kumar
Aug 3, 2008 at 10:17 AM
*www.dreamincode.net/forums/showtopic27088.htm
*www.cplusplus.com/reference/clibrary/ctime/