Date and time

2007-10-24 Thread Olivier Delhomme
Hello, I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. For example 2007/10/24 or 24/10/2007 ... Does this exists in glib/gtk ? thanks, Olivier. ___ gtk-app-devel

Re: Date and time

2007-10-24 Thread Eduardo M KALINOWSKI
Olivier Delhomme wrote: Hello, I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. For example 2007/10/24 or 24/10/2007 ... Does this exists in glib/gtk ? It exists in C --- see your C library's

Re: Date and time

2007-10-24 Thread Murray Cumming
On Wed, 2007-10-24 at 11:19 +0200, Olivier Delhomme wrote: Hello, I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. For example 2007/10/24 or 24/10/2007 ... Does this exists in glib/gtk ? sprintf

Re: Date and time

2007-10-24 Thread Andrew Cowie
On Wed, 2007-10-24 at 11:19 +0200, Olivier Delhomme wrote: I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. The traditional way of custom formatting dates on Unix has long been strftime(); the formatting

RE: Display date and time using gtkmm2.4

2006-12-14 Thread SIRISHA MUPPAVARAPU
:: periodicTask(){ time_t rawtime; struct tm * timeinfo; string date; time ( rawtime ); timeinfo = localtime ( rawtime ); date = asctime(timeinfo); m_date.set_text(date:+date); return true; } returning true alone will get the clock

Display date and time using gtkmm2.4

2006-12-13 Thread SIRISHA MUPPAVARAPU
Hi All In my project, I need to display the date time on the window as long as the application is running. Kind of real time display of date,time on the window. I can use time_t from time.h and obtain the date and time. But, how do I make is real time? I am using libgtk2.8 and libgtkmm 2.4. I

RE: Display date and time using gtkmm2.4

2006-12-13 Thread Madhusudan E
and display. I hope this helps. Rgds, Madhusudan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SIRISHA MUPPAVARAPU Sent: Thursday, December 14, 2006 2:03 AM To: gtk-app-devel-list@gnome.org Subject: Display date and time using gtkmm2.4 Hi All In my