Path: utzoo!attcan!uunet!olivea!samsung!umich!vela!swood From: swood@vela.acs.oakland.edu ( EVENSONG) Newsgroups: comp.lang.c Subject: help to new C programmer with time.h Message-ID: <5284@vela.acs.oakland.edu> Date: 1 Mar 91 05:23:44 GMT Organization: Oakland University, Rochester MI. Lines: 30 I am delving into learning C programming this week, and I was in the process of converting one of my old basic programs over to C, and got to noting that instead of input day and month directly, I could take it directly off of the system clock. But, I can not seem to get it to work. Here is one of multiple combinations that I tried: ---------------------cut here------------------ #include "stdio.h" #include "time.h" main() { struct tm tt; time_t lt; int d, m; time(<); d = tt.tm_mday; m = tt.tm_mon; printf("Day %d Month %d\n", d, m); } ----------------------------cut here------------------- swood -- ---- Insert favorite .signature here ---- | swood@argo.acs.oakland.edu | swood@vela.acs.oakland.edu Bitnet: swood@Oakland | swood@unix.secs.oakland.edu UUCP: ...!uunet!umich!{vela, argo, unix, nucleus}!swood