Update in Utility
diff --git a/utility.c b/utility.c
index 2de07c9..420a911 100644
--- a/utility.c
+++ b/utility.c
@@ -27,6 +27,21 @@
return timestamp;
}
+char * getGmTimeStamp(void)
+{
+ char *timestamp = (char *)malloc(sizeof(char) * 16);
+ time_t gtime;
+ gtime=time(NULL);
+ struct tm *tm;
+ tm=gmtime(>ime);
+
+ sprintf(timestamp, "%04d%02d%02d%02d%02d%02d", tm->tm_year+1900, tm->tm_mon+1,
+ tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
+
+ return timestamp;
+}
+
+
char *
nth_named_component(const char *name_prefix, int n)
{