[svlug] Time - yy mm dd hh mm ss

Edward M. Goldberg emg at writeme.com
Thu May 25 23:04:48 PDT 2000


OK you caught me.  The code is I need is for Fortran!  I did not
want to say that I was working on old code.....

So what I need is the source for this conversion so that I can convert it
to Fortran 77  ( GoTOs and if(a) 100,200,300 ... )

It was time to come out the closet!


Ray Olszewski wrote:
> You don't say what context this routine needs to work in. In Perl, the
> Time::local module has functions timelocal() and timegm() that do about what
> you want (they want the time components in the opposite order from what you
> show, but I assume you can cope with that).
> I'm sure it will handle Y2K and leap years fine. I have my doubts about leap
> seconds. I don't think *any* standard code can handle leap seconds, as they
> don't get added to standard time by any set formula that can be programmed.
> At 09:20 PM 5/25/00 -0700, Edward M. Goldberg wrote:
> >I needs a routine that converts time in "time = yyyy mm dd hh mm ss" format
> >to UNIX standard time so that I can test for (timeA - TimeB) >  6Hr with no
> >Y2K problems.
> >
> >The old code that I have does not perform any corrections for Y2K leap seconds
> >or Leap years ...
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski                                        -- Han Solo
> Palo Alto, CA                                    ray at comarre.com
> ----------------------------------------------------------------

More information about the svlug mailing list