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.
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
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
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
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
man 3 localtime
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list