Mercurial > gnulib
comparison lib/tzset.c @ 40235:5a52ef2d4772
all: Update URLs to msdn.microsoft.com.
* lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
was moved to docs.microsoft.com.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 14 Mar 2019 09:49:24 +0100 |
parents | b06060465f09 |
children |
comparison
equal
deleted
inserted
replaced
40234:fab7ce42e03f | 40235:5a52ef2d4772 |
---|---|
42 | 42 |
43 #if defined _WIN32 && ! defined __CYGWIN__ | 43 #if defined _WIN32 && ! defined __CYGWIN__ |
44 /* Rectify the value of the environment variable TZ. | 44 /* Rectify the value of the environment variable TZ. |
45 There are four possible kinds of such values: | 45 There are four possible kinds of such values: |
46 - Traditional US time zone names, e.g. "PST8PDT". Syntax: see | 46 - Traditional US time zone names, e.g. "PST8PDT". Syntax: see |
47 <https://msdn.microsoft.com/en-us/library/90s5c885.aspx> | 47 <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/tzset> |
48 - Time zone names based on geography, that contain one or more | 48 - Time zone names based on geography, that contain one or more |
49 slashes, e.g. "Europe/Moscow". | 49 slashes, e.g. "Europe/Moscow". |
50 - Time zone names based on geography, without slashes, e.g. | 50 - Time zone names based on geography, without slashes, e.g. |
51 "Singapore". | 51 "Singapore". |
52 - Time zone names that contain explicit DST rules. Syntax: see | 52 - Time zone names that contain explicit DST rules. Syntax: see |
66 const char *tz = getenv ("TZ"); | 66 const char *tz = getenv ("TZ"); |
67 if (tz != NULL && strchr (tz, '/') != NULL) | 67 if (tz != NULL && strchr (tz, '/') != NULL) |
68 _putenv ("TZ="); | 68 _putenv ("TZ="); |
69 | 69 |
70 /* On native Windows, tzset() is deprecated. Use _tzset() instead. See | 70 /* On native Windows, tzset() is deprecated. Use _tzset() instead. See |
71 https://msdn.microsoft.com/en-us/library/ms235451.aspx | 71 <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-tzset> |
72 https://msdn.microsoft.com/en-us/library/90s5c885.aspx */ | 72 <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/tzset> */ |
73 _tzset (); | 73 _tzset (); |
74 #elif HAVE_TZSET | 74 #elif HAVE_TZSET |
75 tzset (); | 75 tzset (); |
76 #else | 76 #else |
77 /* Do nothing. Avoid infinite recursion. */ | 77 /* Do nothing. Avoid infinite recursion. */ |