Re: off topic question
- From: Rajesh Padalia <rpadalia qatar net qa>
- To: Jeffrey Goddard <moosewood mooseroot org>
- Cc: GTK+ Apps List <gtk-app-devel-list gnome org>
- Subject: Re: off topic question
- Date: Sat, 30 Nov 2002 12:07:54 +0300
Jaffrey,
I have used follwoing code to get system time:
------
include <time.h>
time_t rawtime;
struct tm *tm1;
time(&rawtime);
tm1=localtime(&rawtime);
g_print("Date: %04d.%02d.%02d Time: %02d:%02d:%02d\n" tm1->tm_year+1900,
tm1->tm_mon+1, tm1->tm_mday, tm1->tm_hour, tm1->tm_min, tm1->tm->sec);
------
I am not sure if this the best way to get time, however it works for me.
Hope this will help.
Regards,
Rajesh
Jeffrey Goddard wrote:
This is an off topic question, but I haven't been able to find anything
relating to it, so I'm going to toss it out here. Does anyone know where I
can find info relating to obtaining the system time from my server?
Any help will be greatly appreciated,
Jeffrey
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]