From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,172dcc28d2930c96 X-Google-Attributes: gid111c93,public X-Google-Thread: 1094ba,172dcc28d2930c96 X-Google-Attributes: gid1094ba,public From: lindahl@pbm.com (Greg Lindahl) Subject: Re: Unix system g77 calls DATE and TIME not working for Alpha/Linux Date: 1998/10/18 Message-ID: <70ds7g$2cg@news1.newsguy.com>#1/1 X-Deja-AN: 402621492 References: <70cpag$81m$1@news.kjist.ac.kr> Organization: a guest of Shadow Island Games Newsgroups: comp.os.linux.alpha,comp.lang.fortran "G. Hugh SONG" writes: > I noticed that since g77 0.5.20, unix f77 system calls, > "call date" and "call time" silently have been working, which > means that they are not documented. (Well, we are not supposed to > expect an official g77 document till version 1.0 comes out.) > > The syntax is: > > character chdate*9, chtime*8 > c Unix calls > call date(chdate) > call time(chtime) > print*, chtime, chdate > > Unfortunately, under Linux/Alpha, they don't seem to give the > correct date/time character strings. [lindahl@spare-parts lindahl]$ cat > test.f program test character chdate*9, chtime*8 c Unix calls call date(chdate) call time(chtime) print*, chtime, chdate stop end [lindahl@spare-parts lindahl]$ g77 test.f /a.out [lindahl@spare-parts lindahl]$ ./a.out ; date 19:03:1118-Oct-98 Sun Oct 18 19:03:11 EDT 1998 Works great for me. If your system clock is wrong, I wouldn't be surprised if g77 prints the same thing as the system clock. The answer for configuring your overall Linux/Alpha system clock is in the Linux/Alpha FAQ. -- g