[Glade-users] Urgent Help needed



Shivdeep Krishnan wrote:

Hi,

My project uses the date edit widget to a large extent. I am unable to print the date. I want to know as to 
how exactly I can return a date and print it. Also I need to know as to how I can print just the day or 
month or year alone. Please help me out of this problem.

You mean the GnomeDateEdit widget?

You use gnome_date_edit_get_date() to get the time_t value.

Then use the standard localtime() or gmtime() functions to turn
that into a struct tm, which you can format with strftime.
Or use ctime() to get a formatted date string from the time_t.
See the man pages for these.

Damon





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]