SUMMARY:Looking for C program to get day of the week

From: Zion_Huang@focusppo.com
Date: Thu Apr 13 2000 - 13:03:05 CDT


Thanks to :

Gerhard den Hollander <gdenhollander@jasongeo.com>

I got my answer!

Zion

>
>
> To All helpers:
>
> I am in need to find a C source code to return day of the week.

it's cheating but
main()
{
    system("date +%w");
}

does just that ;)

otherwise, just ook at the strftime function
(man strftime)
which does all you want (and much more)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:06 CDT