* support is added and NETaa14816 is considered in full.
* It does not address tzname aspects of NETaa14816.
*/
-#if !defined(HAS_GNULIBC)
+#if defined(HAS_GNULIBC)
# ifndef STRUCT_TM_HASZONE
# define STRUCT_TM_HASZONE
# else
-use Test::More tests => 93;
+use Test::More tests => 95;
my $is_win32 = ($^O =~ /Win32/);
my $is_qnx = ($^O eq 'qnx');
cmp_ok($t->daylight_savings, '==', 0);
# ->tzoffset?
+{
+ local $ENV{TZ} = "EST";
+ my $lt = localtime;
+ cmp_ok(scalar($lt->tzoffset), 'eq', '-18000');
+ cmp_ok($lt->strftime("%z"), 'eq', '-0500');
+}
+
cmp_ok(($t->julian_day / 2451604.0243 ) - 1, '<', 0.001);
cmp_ok(($t->mjd / 51603.52426) - 1, '<', 0.001);
cmp_ok($t->week, '==', 9);