[GTK+-2.0] gtk get date ??

2004-03-13 Thread Alain D'EURVEILHER
Hi all :-) Is it possible to get the current date with gtk functions ? Is there something like gdk_get_time (NULL); which returns the current time, but for returning the current date ? My purpose is to make a dynamic label, which is field with the current date everytime I open the widget.

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Sven Neumann
Hi, Alain D'EURVEILHER [EMAIL PROTECTED] writes: Is it possible to get the current date with gtk functions ? Is there something like gdk_get_time (NULL); which returns the current time, but for returning the current date ? Such functionality doesn't belong into a toolkit. The reason that

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Alain D'EURVEILHER
Le Samedi 13 Mars 2004 12:47, Sven Neumann a écrit : SN have a look at glib: SN http://developer.gnome.org/doc/API/2.0/glib/glib-Date-and-Time-Functions.html SN Sven Great !! Thank you ;-) -- AlaiN. -- PGP Public Key ID: 0x74279229 -- ___ gtk-list

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Alain D'EURVEILHER
Actually, it is almost what I want. But I need to set manually the date ! :-( Also, I know a system command 'date' which return the date in a format I can specify. Can I get the output of this command in a variable of my program ? I want to have something like this : variable = system (date

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Sven Neumann
Hi, Alain D'EURVEILHER [EMAIL PROTECTED] writes: Also, I know a system command 'date' which return the date in a format I can specify. Can I get the output of this command in a variable of my program ? man strftime(3) Now this is getting off-topic. gtk-list is not about general ANSI C

Re: [GTK+-2.0] gtk get date ??

2004-03-13 Thread Paul Davis
man 3 localtime ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list