Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Is alpha the only OSF/1 broken for this?
@ 1993-08-13 21:19 Syd Weinstein
  1993-08-17 18:52 ` Rick Murphy
  0 siblings, 1 reply; 2+ messages in thread
From: Syd Weinstein @ 1993-08-13 21:19 UTC (permalink / raw)


I've come across a problem with DEC's alpha OSF/1 using the
following simple test program:

#include <stdio.h>
#include <time.h>

main()
{
        time_t t;
        struct tm *tm;

#ifdef DO_TZSET
        tzset();
#endif
        (void) time(&t);
        tm = localtime(&t);
        printf("tm->tm_gmtoff = %ld\n", (long)tm->tm_gmtoff/60);
        printf("tm->tm_zone = %s\n", tm->tm_zone);
        exit(0);
}


It should return the number of minutes off gmt, and the
name of the TZ.  Under DEC's OSF/1, I get the tz_zone fine,
but the tm-gmtoff is garbage.
-- 
========================================================================
Sydney S. Weinstein, CDP, CCP          Elm Coordinator - Current 2.4PL22
Datacomp Systems, Inc.                 Projected 3.0 Release: ??? ?,1994
syd@DSI.COM or dsinc!syd      Voice: (215) 947-9900, FAX: (215) 938-0235


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is alpha the only OSF/1 broken for this?
  1993-08-13 21:19 Is alpha the only OSF/1 broken for this? Syd Weinstein
@ 1993-08-17 18:52 ` Rick Murphy
  0 siblings, 0 replies; 2+ messages in thread
From: Rick Murphy @ 1993-08-17 18:52 UTC (permalink / raw)



In article <24h0ge$dhv@dsinc.dsi.com>, syd@dsi.com (Syd Weinstein) writes:
>I've come across a problem with DEC's alpha OSF/1 using the
>following simple test program:

[...deleted...]

>It should return the number of minutes off gmt, and the
>name of the TZ.  Under DEC's OSF/1, I get the tz_zone fine,
>but the tm-gmtoff is garbage.

Works fine for me:
$ ./timetest
tm->tm_gmtoff = -240
tm->tm_zone = EDT

What does the "timezone" line in your kernel's config file say?
	-Rick
-- 
Rick Murphy, WA1SPT/4			GPO/Technical Support Group
Domain:  murphy@cop.dec.com		This posting expresses MY opinions only;
Bang:    decwrl!burfle.enet!murphy	 I do not speak for Digital.
Ding:    301-918-5883.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-08-17 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-13 21:19 Is alpha the only OSF/1 broken for this? Syd Weinstein
1993-08-17 18:52 ` Rick Murphy

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