mirror of
https://frontier.innolan.net/rainlance/amiga-ntimed.git
synced 2025-11-20 22:03:42 +00:00
Updated timezone info
This commit is contained in:
15
tz.c
15
tz.c
@ -26,7 +26,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "tz.h"
|
||||
@ -43,6 +42,7 @@ void ArgTimezone(const char *tz)
|
||||
return;
|
||||
|
||||
if (!strcmp(tz, "-")) {
|
||||
tzid = 0;
|
||||
utcoffset = 0.0;
|
||||
return;
|
||||
}
|
||||
@ -60,7 +60,7 @@ void ArgTimezone(const char *tz)
|
||||
}
|
||||
}
|
||||
|
||||
Fail(NULL, 0, "Unknown timezone. Try TIMEZONE ?");
|
||||
Fail(NULL, 0, "Unknown timezone. Try TIMEZONE=?");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -70,11 +70,12 @@ void PrintTimeZones()
|
||||
static const unsigned int count = sizeof(tza) / sizeof(struct tzabbr);
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
printf("%s\t%s%.2f\t%s\n",
|
||||
tza[i].abbr,
|
||||
tza[tzid].offset < 0.0 ? "-" : "+",
|
||||
fabs(tza[i].offset),
|
||||
tza[i].name);
|
||||
Put(NULL, OCX_DEBUG,
|
||||
"%s\t%s%.2f\t%s\n",
|
||||
tza[i].abbr,
|
||||
tza[i].offset < 0.0 ? "-" : "+",
|
||||
fabs(tza[i].offset),
|
||||
tza[i].name);
|
||||
}
|
||||
|
||||
exit(1);
|
||||
|
||||
5
tz.h
5
tz.h
@ -172,8 +172,8 @@ static const tzabbr tza[] = {
|
||||
{"PMST", "Saint Pierre and Miquelon Standard Time", -3},
|
||||
{"PONT", "Pohnpei Standard Time", 11},
|
||||
{"PST", "Pacific Standard Time (North America)", -8},
|
||||
{"PYST", "Paraguay Summer Time (South America)[6]", -3},
|
||||
{"PYT", "Paraguay Time (South America)[7]", -4},
|
||||
{"PYST", "Paraguay Summer Time (South America)", -3},
|
||||
{"PYT", "Paraguay Time (South America)", -4},
|
||||
{"RET", "Réunion Time", 4},
|
||||
{"ROTT", "Rothera Research Station Time", -3},
|
||||
{"SAKT", "Sakhalin Island time", 11},
|
||||
@ -244,4 +244,3 @@ static const tzabbr tza[] = {
|
||||
{"-11", "Coordinated Universal Time -11", -11.0},
|
||||
{"-12", "Coordinated Universal Time -12", -12.0}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user