|
Get system time and date cpp
|
|
03-11-2010, 04:38 AM
Post: #1
|
|||
|
|||
|
Get system time and date cpp
You can extract system time and date with localtime() function.
There are ways to do it using time() function from <time.h>, but this is easier. This works with time_t type and here is the code that you can use : Code: # include <iostream>Code: Current local time and date: Wed Mar 10 19:30:00 2010There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
03-11-2010, 05:42 AM
Post: #2
|
|||
|
|||
|
RE: Get system time and date cpp
Nice. Thanks for sharing.
|
|||
|
12-31-2010, 06:08 AM
Post: #3
|
|||
|
|||
|
RE: Get system time and date cpp
Very nice.
Are there any functions for manipulating time intervals? |
|||
|
12-31-2010, 06:49 AM
Post: #4
|
|||
|
|||
|
RE: Get system time and date cpp
Nice
I need things like this, cos I am kinda starter in C++
Read rules ![]()
|
|||
|
12-31-2010, 07:46 AM
Post: #5
|
|||
|
|||
RE: Get system time and date cpp
(12-31-2010 06:08 AM)TheBear Wrote: Very nice.If you mean like delay or sleep functions, yeah, we have one for C/C++ here : http://www.pro9ramming.com/sleep-functio...t-965.html There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|








I need things like this, cos I am kinda starter in C++