maybe u can try like this

#include <time.h>

    time_t t;
    struct tm t_s;

    t=time(NULL);
    t_s = *localtime(&t);

check t_s.tm_year,
t_s.tm_mon+1,
t_s.tm_mday,
t_s.tm_hour,
t_s.tm_min

and so on.

and what's the type of the widget u want to display?
please show more details 



----- Original Message ----- 
From: "srinivas" <[EMAIL PROTECTED]>
To: <gtk-app-devel-list@gnome.org>
Sent: Thursday, June 02, 2005 2:59 PM
Subject: get sys date


> hi;
> 
>       developing gui with glade, c. i want to know the api or
> functionality to how to get system date and time, and how to display it
> to the particular widget.
> 
> thanks;
> 
> vasu.
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to