|
|
| version 1.1.1.1, 2003/10/16 17:59:41 | version 1.2, 2003/11/16 16:43:45 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "timemng.h" | |
| #include <time.h> | |
| #include <time.h> | |
| BOOL timemng_gettime(_SYSTIME *systime) { | #include "timemng.h" |
| time_t long_time; | BOOL |
| struct tm *now_time; | timemng_gettime(_SYSTIME *systime) |
| { | |
| struct tm *now_time; | |
| time_t long_time; | |
| time(&long_time); | time(&long_time); |
| now_time = localtime(&long_time); | now_time = localtime(&long_time); |
| Line 19 struct tm *now_time; | Line 21 struct tm *now_time; |
| systime->minute = now_time->tm_min; | systime->minute = now_time->tm_min; |
| systime->second = now_time->tm_sec; | systime->second = now_time->tm_sec; |
| systime->milli = 0; | systime->milli = 0; |
| return(SUCCESS); | |
| } | return SUCCESS; |
| else { | |
| return(FAILURE); | |
| } | } |
| return FAILURE; | |
| } | } |