Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: lindahl@pbm.com (Greg Lindahl)
Subject: Re: Unix system g77 calls DATE and TIME not working for Alpha/Linux
Date: 1998/10/18	[thread overview]
Message-ID: <70ds7g$2cg@news1.newsguy.com> (raw)
In-Reply-To: 70cpag$81m$1@news.kjist.ac.kr

"G. Hugh SONG" <ghsong@\"Spamspoiler\"kjist.ac.kr> 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




  reply	other threads:[~1998-10-18  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-18  4:00 Unix system g77 calls DATE and TIME not working for Alpha/Linux G. Hugh SONG
1998-10-18  4:00 ` Greg Lindahl [this message]
1998-10-19  4:00   ` Very much confused with clock (was Re: Unix system g77 calls DATE and TIME not working for Alpha/Linux) G. Hugh SONG
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox