[svn r216] Change the time_t time/date references, to the GTimeVal GLib's structure. trunk
authorrosfran
Tue Dec 12 18:18:36 2006 +0000 (2006-12-12)
branchtrunk
changeset 215633c6c9784d3
parent 214 254e85c43269
child 216 001205bb0f40
[svn r216] Change the time_t time/date references, to the GTimeVal GLib's structure.
gmyth/configure.ac
gmyth/src/gmyth_common.c
gmyth/src/gmyth_util.c
     1.1 --- a/gmyth/configure.ac	Tue Dec 12 17:59:47 2006 +0000
     1.2 +++ b/gmyth/configure.ac	Tue Dec 12 18:18:36 2006 +0000
     1.3 @@ -58,8 +58,9 @@
     1.4  AC_PROG_GCC_TRADITIONAL
     1.5  AC_FUNC_MALLOC
     1.6  AC_FUNC_MKTIME
     1.7 +AC_FUNC_STRFTIME
     1.8  AC_FUNC_VPRINTF
     1.9 -AC_CHECK_FUNCS([memset socket stime strstr strtoul gethostname inet_ntoa localtime_r select strrchr localtime])
    1.10 +AC_CHECK_FUNCS([memset socket stime strstr strtoul gethostname inet_ntoa localtime_r select strrchr localtime strptime])
    1.11  
    1.12  AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
    1.13  
     2.1 --- a/gmyth/src/gmyth_common.c	Tue Dec 12 17:59:47 2006 +0000
     2.2 +++ b/gmyth/src/gmyth_common.c	Tue Dec 12 18:18:36 2006 +0000
     2.3 @@ -88,8 +88,8 @@
     2.4               "Start time= %s\t"
     2.5               "End time = %s\n", program_info->title->str,
     2.6               program_info->description->str, 
     2.7 -             ctime(&program_info->startts),
     2.8 -             ctime(&program_info->endts));
     2.9 +             gmyth_util_time_to_string_from_time_val(program_info->startts),
    2.10 +             gmyth_util_time_to_string_from_time_val(program_info->endts));
    2.11  }
    2.12  
    2.13  static void 
     3.1 --- a/gmyth/src/gmyth_util.c	Tue Dec 12 17:59:47 2006 +0000
     3.2 +++ b/gmyth/src/gmyth_util.c	Tue Dec 12 18:18:36 2006 +0000
     3.3 @@ -222,7 +222,7 @@
     3.4  time_t
     3.5  gmyth_util_string_to_time (GString* time_str)
     3.6  {
     3.7 -	gint year, month, day, hour, min, sec;
     3.8 +	//gint year, month, day, hour, min, sec;
     3.9  	GDate *date = g_date_new();
    3.10      
    3.11  	gmyth_debug( "[%s] time_str = %s. [%s]\n", __FUNCTION__, time_str != NULL ?