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

Status
Not open for further replies.

clmlbx

Technomancer
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++ ?
 
Last edited:

Saket Parekh

Broken In
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.....
 
OP
clmlbx

clmlbx

Technomancer
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
 
Status
Not open for further replies.
Top Bottom