Go to the documentation of this file.00001 #include "FormatString.h"
00002 #include "EpochTimeToString.h"
00003 #include <stdio.h>
00004 #include <string.h>
00005 #include <stdarg.h>
00006
00007 #include <time.h>
00008 #include "LinuxStrings.h"
00009
00010 char * EpochTimeToString(long long time)
00011 {
00012 static int textIndex=0;
00013 static char text[4][64];
00014
00015 if (++textIndex==4)
00016 textIndex=0;
00017
00018 struct tm * timeinfo;
00019 time_t t = time;
00020 timeinfo = localtime ( &t );
00021 strftime (text[textIndex],64,"%c.",timeinfo);
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 return text[textIndex];
00035 }