[tz] Astrakhan region got approval to change its time zone

Robert Elz kre at munnari.OZ.AU
Sun Feb 14 23:54:26 UTC 2016

    Date:        Sun, 14 Feb 2016 14:56:54 -0800
    From:        Paul Eggert <eggert at cs.ucla.edu>
    Message-ID:  <56C10636.4090905 at cs.ucla.edu>

  | Random832 wrote:
  | > How about "D"?
  | Under this proposal there is no "D" ("daylight")

I think he meant to use exactly "D" as in the US Military zone name,
not wanting a DST flag.

Personally I'd prefer to the zone "abbreviations" (for all zones) were
set to something like the function in the attached program prints (using
tm_gmtoff for the zone - or what its value would be if it existed, in cases
where it does not.)


-------------- next part --------------
#include <stdlib.h>
#include <stdio.h>

#define Abs(n)	(n ? abs(n) : 1)

pr_gmtoff(long tm_gmtoff)
	int n;

	n = -tm_gmtoff / 60;
	printf("%+5.4d", n/Abs(n) * ((abs(n)/60)*100 + (abs(n)%60)));

#ifdef TEST

main(int c, char **v)
	int i;
	long gmtoff;

	for (i = 1; i < c; i++) {
		gmtoff = atol(v[i]);
		printf("From %6s: <", v[i]);


More information about the tz mailing list