Lines Matching refs:TZ
52 // Uncomment and run unittests to print missing Windows TZ translations.
78 the TZ Database name, whereas with $(LREF WindowsTimeZone), it's the
85 $(HTTP en.wikipedia.org/wiki/Tz_database, Wikipedia entry on TZ
225 immutable tz = PosixTimeZone.getTimeZone(tzName);
226 assert(tz.name == tzName);
230 immutable tz = WindowsTimeZone.getTimeZone(tzName);
231 assert(tz.name == stdName);
236 //assert(tz.stdName == stdName); //Locale-dependent
237 //assert(tz.dstName == dstName); //Locale-dependent
238 assert(tz.hasDST == hasDST);
243 auto std = SysTime(stdDate, tz);
244 auto dst = SysTime(dstDate, tz);
250 assert(tz.utcOffsetAt(std.stdTime) == utcOffset);
251 assert(tz.utcOffsetAt(dst.stdTime) == utcOffset + dstOffset);
320 return tz;
350 // probably figure out how to report an error in the TZ
383 auto tz = tzs[i];
386 auto stdOffset = SysTime(dstSwitches[i][0] + dur!"days"(-1), tz).utcOffset;
395 auto st = SysTime(dstSwitches[i][0] + dur!"hours"(hour), tz);
410 tag, st, tz.name, st.utcOffset, stdOffset, dstOffset),
421 testHour(st, spring + 1, tz.name);
422 testHour(st + dur!"minutes"(1), spring + 1, tz.name);
426 testHour(st, targetHour, tz.name);
427 testHour(st + dur!"minutes"(1), targetHour, tz.name);
435 st = SysTime(dstSwitches[i][1] + dur!"hours"(hour), tz);
436 testHour(st, targetHour, tz.name);
440 testHour(st + dur!"hours"(1), targetHour, tz.name);
460 auto local = utc.toOtherTZ(tz);
466 return new AssertError(format("%s [%s] [%s]: [%s] [%s]", tag, hour, tz.name, utc, local),
481 local = utc.toOtherTZ(tz);
558 nor Windows systems provide an easy way to get the TZ Database name
562 $(HTTP en.wikipedia.org/wiki/Tz_database, Wikipedia entry on TZ
1269 the TZ Database, obviously it's not likely to be following the exact rules
1270 of any of the time zones in the TZ Database, so it makes no sense to set it.
1865 Represents a time zone from a TZ Database time zone file. Files from the TZ
1867 Unfortunately, Windows does not use the TZ Database. To use the TZ Database,
1868 use `PosixTimeZone` (which reads its information from the TZ Database
1869 files on disk) on Windows by providing the TZ Database files and telling
1886 $(HTTP www.iana.org/time-zones, Home of the TZ Database files)<br>
1887 $(HTTP en.wikipedia.org/wiki/Tz_database, Wikipedia entry on TZ Database)<br>
2012 The default directory where the TZ Database files are stored. It's
2045 Returns a $(LREF TimeZone) with the give name per the TZ Database. The
2046 time zone information is fetched from the TZ Database time zone files in
2050 $(HTTP en.wikipedia.org/wiki/Tz_database, Wikipedia entry on TZ
2056 name = The TZ Database name of the desired time zone
2057 tzDatabaseDir = The directory where the TZ Database files are
2065 could not be found or `FileException` if the TZ Database file
2389 throw new DateTimeException("Not a valid TZ data file", __FILE__, __LINE__, e);
2397 auto tz = PosixTimeZone.getTimeZone("America/Los_Angeles");
2399 assert(tz.name == "America/Los_Angeles");
2400 assert(tz.stdName == "PST");
2401 assert(tz.dstName == "PDT");
2415 tzDatabaseDir = The directory where the TZ Database files are
2642 Reads an int from a TZ file.
2657 Reads an array of values from a TZ file.
2672 Reads a `TempTTInfo` from a TZ file.
2836 does not use the TZ Database. To use the TZ Database, use
2837 $(LREF PosixTimeZone) (which reads its information from the TZ Database
2838 files on disk) on Windows by providing the TZ Database files and telling
2841 The TZ Database files and Windows' time zone information frequently
2843 occur (especially for historical dates). Also, the TZ Database files
2845 time zone information, use the TZ Database files with
2856 $(HTTP www.iana.org/time-zones, Home of the TZ Database files)
2913 $(HTTP en.wikipedia.org/wiki/Tz_database, Wikipedia entry on TZ
2919 name = The TZ Database name of the desired time zone.
2927 auto tz = WindowsTimeZone.getTimeZone("Pacific Standard Time");
2936 TZ names, not the TZ Database names. However,
2937 `TimeZone.getinstalledTZNames` will return the TZ Database names
2938 which are equivalent to the Windows TZ names.
3290 Sets the local time zone on Posix systems with the TZ
3291 Database name by setting the TZ environment variable.
3293 Unfortunately, there is no way to do it on Windows using the TZ
3302 Clears the TZ environment variable.
3319 setenv("TZ", value.tempCString(), 1);
3329 unsetenv("TZ");
3383 IANA TZ database names which are close (currently only ever one, but