Debian Codegraph @

po/ru/man3/ctime.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2014.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Yuri Kozlov <[email protected]>, 2011-2019.
9 # Иван Павлов <[email protected]>, 2017.
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: manpages-l10n\n"
13 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
15 "Last-Translator: Yuri Kozlov <[email protected]>\n"
16 "Language-Team: Russian <[email protected]>\n"
17 "Language: ru\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
22 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
23 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
24 "X-Generator: Lokalize 2.0\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, fuzzy, no-wrap
30 #| msgid "B<ctime>()"
31 msgid "ctime"
32 msgstr "B<ctime>()"
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-08"
39 msgstr "8 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid ""
59 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
60 "localtime_r - transform date and time to broken-down time or ASCII"
61 msgstr ""
62 "asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, "
63 "localtime_r - преобразует дату и время в раздельном представлении или ASCII"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "LIBRARY"
70 msgstr "БИБЛИОТЕКА"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "Standard C library (I<libc>,\\ I<-lc>)"
76 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "СИНТАКСИС"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<#include E<lt>time.hE<gt>>\n"
90 msgstr "B<#include E<lt>time.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy, no-wrap
96 #| msgid ""
97 #| "B<char *asctime(const struct tm *>I<tm>B<);>\n"
98 #| "B<char *asctime_r(const struct tm *>I<tm>B<, char *>I<buf>B<);>\n"
99 msgid ""
100 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
101 "B<char *asctime_r(const struct tm *restrict >I<tm>B<,>\n"
102 "B< char >I<buf>B<[restrict 26]);>\n"
103 msgstr ""
104 "B<char *asctime(const struct tm *>I<tm>B<);>\n"
105 "B<char *asctime_r(const struct tm *>I<tm>B<, char *>I<buf>B<);>\n"
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, fuzzy, no-wrap
111 #| msgid ""
112 #| "B<char *ctime(const time_t *>I<timep>B<);>\n"
113 #| "B<char *ctime_r(const time_t *>I<timep>B<, char *>I<buf>B<);>\n"
114 msgid ""
115 "B<char *ctime(const time_t *>I<timep>B<);>\n"
116 "B<char *ctime_r(const time_t *restrict >I<timep>B<,>\n"
117 "B< char >I<buf>B<[restrict 26]);>\n"
118 msgstr ""
119 "B<char *ctime(const time_t *>I<timep>B<);>\n"
120 "B<char *ctime_r(const time_t *>I<timep>B<, char *>I<buf>B<);>\n"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, fuzzy, no-wrap
126 #| msgid ""
127 #| "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
128 #| "B<struct tm *gmtime_r(const time_t *>I<timep>B<, struct tm *>I<result>B<);>\n"
129 msgid ""
130 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
131 "B<struct tm *gmtime_r(const time_t *restrict >I<timep>B<,>\n"
132 "B< struct tm *restrict >I<result>B<);>\n"
133 msgstr ""
134 "B<struct tm *gmtime(const time_t *>I<timep>B<);>\n"
135 "B<struct tm *gmtime_r(const time_t *>I<timep>B<, struct tm *>I<result>B<);>\n"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, fuzzy, no-wrap
141 #| msgid ""
142 #| "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
143 #| "B<struct tm *localtime_r(const time_t *>I<timep>B<, struct tm *>I<result>B<);>\n"
144 msgid ""
145 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
146 "B<struct tm *localtime_r(const time_t *restrict >I<timep>B<,>\n"
147 "B< struct tm *restrict >I<result>B<);>\n"
148 msgstr ""
149 "B<struct tm *localtime(const time_t *>I<timep>B<);>\n"
150 "B<struct tm *localtime_r(const time_t *>I<timep>B<, struct tm *>I<result>B<);>\n"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid "B<time_t mktime(struct tm *>I<tm>B<);>\n"
157 msgstr "B<time_t mktime(struct tm *>I<tm>B<);>\n"
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
164 msgstr ""
165 "Требования макроса тестирования свойств для glibc (см. "
166 "B<feature_test_macros>(7)):"
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
172 msgstr "B<asctime_r>(), B<ctime_r>(), B<gmtime_r>(), B<localtime_r>():"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid ""
179 " _POSIX_C_SOURCE\n"
180 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
181 msgstr ""
182 " _POSIX_C_SOURCE\n"
183 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
184
185 #. type: SH
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "DESCRIPTION"
190 msgstr "ОПИСАНИЕ"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy
196 #| msgid ""
197 #| "The B<ctime>(), B<gmtime>() and B<localtime>() functions all take an "
198 #| "argument of data type I<time_t>, which represents calendar time. When "
199 #| "interpreted as an absolute time value, it represents the number of "
200 #| "seconds elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
201 msgid ""
202 "The B<ctime>(), B<gmtime>(), and B<localtime>() functions all take an "
203 "argument of data type I<time_t>, which represents calendar time. When "
204 "interpreted as an absolute time value, it represents the number of seconds "
205 "elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
206 msgstr ""
207 "Функции B<ctime>(), B<gmtime>() и B<localtime>() в качестве аргумента "
208 "используют тип данных I<time_t>, представляющий собой календарное время. При "
209 "его интерпретации как абсолютного времени, оно представляет количество "
210 "секунд, прошедших с начала эпохи — 00:00:00 1 января 1970 +0000 (UTC)."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "The B<asctime>() and B<mktime>() functions both take an argument "
217 "representing broken-down time, which is a representation separated into "
218 "year, month, day, and so on."
219 msgstr ""
220 "Функции B<asctime>() и B<mktime>() используют в качестве аргумента время, "
221 "которое разделено на компоненты: год, месяц, день и т. п."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, fuzzy
227 #| msgid ""
228 #| "Broken-down time is stored in the structure I<tm>, which is defined in "
229 #| "I<E<lt>time.hE<gt>> as follows:"
230 msgid ""
231 "Broken-down time is stored in the structure I<tm>, described in B<tm>(3type)."
232 msgstr ""
233 "Время в виде компонент хранится в структуре I<tm>, которая определена в "
234 "файле I<E<lt>time.hE<gt>> следующим образом:"
235
236 #. type: Plain text
237 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
238 #: opensuse-tumbleweed
239 #, fuzzy
240 #| msgid ""
241 #| "The call B<ctime(>I<t>B<)> is equivalent to "
242 #| "B<asctime(localtime(>I<t>B<))>. It converts the calendar time I<t> into "
243 #| "a null-terminated string of the form"
244 msgid ""
245 "The call B<ctime(>I<t>B<)> is equivalent to I<asctime(localtime(t))>. It "
246 "converts the calendar time I<t> into a null-terminated string of the form"
247 msgstr ""
248 "Вызов B<ctime(>I<t>B<)> эквивалентен B<asctime(localtime(>I<t>B<))>. Он "
249 "преобразует календарное время I<t> в строку (с null в конце) вида"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, fuzzy, no-wrap
255 #| msgid "\"Wed Jun 30 21:49:08 1993\\en\"\n"
256 msgid "\"Wed Jun 30 21:49:08 1993\\[rs]n\"\n"
257 msgstr "\"Wed Jun 30 21:49:08 1993\\en\"\n"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, fuzzy
263 #| msgid ""
264 #| "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
265 #| "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
266 #| "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", "
267 #| "\"Aug\", \"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points "
268 #| "to a statically allocated string which might be overwritten by subsequent "
269 #| "calls to any of the date and time functions. The function also sets the "
270 #| "external variables I<tzname>, I<timezone>, and I<daylight> (see "
271 #| "B<tzset>(3)) with information about the current timezone. The reentrant "
272 #| "version B<ctime_r>() does the same, but stores the string in a user-"
273 #| "supplied buffer which should have room for at least 26 bytes. It need "
274 #| "not set I<tzname>, I<timezone>, and I<daylight>."
275 msgid ""
276 "The abbreviations for the days of the week are \"Sun\", \"Mon\", \"Tue\", "
277 "\"Wed\", \"Thu\", \"Fri\", and \"Sat\". The abbreviations for the months "
278 "are \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", "
279 "\"Sep\", \"Oct\", \"Nov\", and \"Dec\". The return value points to a "
280 "statically allocated string which might be overwritten by subsequent calls "
281 "to any of the date and time functions. The function also sets the external "
282 "variables I<tzname>, I<timezone>, and I<daylight> as if it called "
283 "B<tzset>(3). The reentrant version B<ctime_r>() does the same, but stores "
284 "the string in a user-supplied buffer which should have room for at least 26 "
285 "bytes. It need not set I<tzname>, I<timezone>, and I<daylight>."
286 msgstr ""
287 "Аббревиатуры дней недели: «Sun», «Mon», «Tue», «Wed», «Thu», «Fri» и «Sat». "
288 "Аббревиатуры месяцев: «Jan», «Feb», «Mar», «Apr», «May», «Jun», «Jul», "
289 "«Aug», «Sep», «Oct», «Nov» и «Dec». Возвращаемое значение указывает на "
290 "статически размещённую строку, которая может быть перезаписана последующими "
291 "вызовами любых функций даты и времени. Функция также устанавливает в внешних "
292 "переменных I<tzname>, I<timezone> и I<daylight> (смотрите B<tzset>(3)) "
293 "текущий часовой пояс. Реентерабельная версия B<ctime_r>() делает то же "
294 "самое, но заносит строку в буфер, предоставляемый пользователем. Длина "
295 "буфера должна быть не менее 26 байт. Ей не нужно устанавливать I<tzname>, "
296 "I<timezone> и I<daylight>."
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "The B<gmtime>() function converts the calendar time I<timep> to broken-down "
303 "time representation, expressed in Coordinated Universal Time (UTC). It may "
304 "return NULL when the year does not fit into an integer. The return value "
305 "points to a statically allocated struct which might be overwritten by "
306 "subsequent calls to any of the date and time functions. The B<gmtime_r>() "
307 "function does the same, but stores the data in a user-supplied struct."
308 msgstr ""
309 "Функция B<gmtime>() преобразует календарное время I<timep> в компонентное "
310 "представление, выраженное в виде всеобщего скоординированного времени (UTC). "
311 "Она может вернуть значение NULL, если год не может быть описан типом "
312 "integer. Возвращаемое значение указывает на статически выделенную структуру, "
313 "содержимое которой может быть перезаписано последующими вызовами любых "
314 "функций, работающих с датой и временем. Функция B<gmtime_r>() делает то же "
315 "самое, но помещает данные в структуру, предоставленную пользователем."
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, fuzzy
321 #| msgid ""
322 #| "The B<localtime>() function converts the calendar time I<timep> to "
323 #| "broken-down time representation, expressed relative to the user's "
324 #| "specified timezone. The function acts as if it called B<tzset>(3) and "
325 #| "sets the external variables I<tzname> with information about the current "
326 #| "timezone, I<timezone> with the difference between Coordinated Universal "
327 #| "Time (UTC) and local standard time in seconds, and I<daylight> to a "
328 #| "nonzero value if daylight savings time rules apply during some part of "
329 #| "the year. The return value points to a statically allocated struct which "
330 #| "might be overwritten by subsequent calls to any of the date and time "
331 #| "functions. The B<localtime_r>() function does the same, but stores the "
332 #| "data in a user-supplied struct. It need not set I<tzname>, I<timezone>, "
333 #| "and I<daylight>."
334 msgid ""
335 "The B<localtime>() function converts the calendar time I<timep> to broken-"
336 "down time representation, expressed relative to the user's specified "
337 "timezone. The function also sets the external variables I<tzname>, "
338 "I<timezone>, and I<daylight> as if it called B<tzset>(3). The return value "
339 "points to a statically allocated struct which might be overwritten by "
340 "subsequent calls to any of the date and time functions. The "
341 "B<localtime_r>() function does the same, but stores the data in a user-"
342 "supplied struct. It need not set I<tzname>, I<timezone>, and I<daylight>."
343 msgstr ""
344 "Функция B<localtime>() преобразует календарное время I<timep> в компонентное "
345 "представление, выраженное относительно часового пояса, заданного "
346 "пользователем. Функция работает так, как-будто она вызывает B<tzset>(3), и "
347 "устанавливает внешние переменные: I<tzname> в значение текущего часового "
348 "пояса, I<timezone> в значение разницы в секундах между всеобщим "
349 "скоординированным временем (UTC) и локальным стандартом времени, и "
350 "I<daylight> в ненулевое значение, если действуют стандартные правила летнего "
351 "времени. Возвращаемое значение указывает на статически выделенную структуру, "
352 "содержимое которой может быть перезаписано последующими вызовами любых "
353 "функций, работающих с датой и временем. Функция B<localtime_r>() делает то "
354 "же самое, но помещает данные в структуру, предоставленную пользователем. Она "
355 "не нуждается в установке I<tzname>, I<timezone> и I<daylight>."
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "The B<asctime>() function converts the broken-down time value I<tm> into a "
362 "null-terminated string with the same format as B<ctime>(). The return value "
363 "points to a statically allocated string which might be overwritten by "
364 "subsequent calls to any of the date and time functions. The B<asctime_r>() "
365 "function does the same, but stores the string in a user-supplied buffer "
366 "which should have room for at least 26 bytes."
367 msgstr ""
368 "Функция B<asctime>() преобразует компонентное значение времени I<tm> в "
369 "строку (с null в конце) того же формата, что и функция B<ctime>(). "
370 "Возвращаемое значение указывает на статическую строку, которая может быть "
371 "перезаписана последовательностью вызовов любых функций даты и времени. "
372 "Функция B<asctime_r>() делает то же самое, но заносит строку в буфер, "
373 "предоставленный пользователем. Длина буфера должна быть не менее 26 байт."
374
375 #. type: Plain text
376 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
377 #: opensuse-leap-16-1 opensuse-tumbleweed
378 #, fuzzy
379 #| msgid ""
380 #| "The B<mktime>() function converts a broken-down time structure, "
381 #| "expressed as local time, to calendar time representation. The function "
382 #| "ignores the values supplied by the caller in the I<tm_wday> and "
383 #| "I<tm_yday> fields. The value specified in the I<tm_isdst> field informs "
384 #| "B<mktime>() whether or not daylight saving time (DST) is in effect for "
385 #| "the time supplied in the I<tm> structure: a positive value means DST is "
386 #| "in effect; zero means that DST is not in effect; and a negative value "
387 #| "means that B<mktime>() should (use timezone information and system "
388 #| "databases to) attempt to determine whether DST is in effect at the "
389 #| "specified time."
390 msgid ""
391 "The B<mktime>() function converts a broken-down time structure, expressed "
392 "as local time, to calendar time representation. The function ignores the "
393 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
394 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
395 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
396 "structure: a positive value means DST is in effect; zero means that DST is "
397 "not in effect; and a negative value means that B<mktime>() should (use "
398 "timezone information and system databases to) attempt to determine whether "
399 "DST is in effect at the specified time. See B<timegm>(3) for a UTC "
400 "equivalent of this function."
401 msgstr ""
402 "Функция B<mktime>() преобразует компонентное структурированное значение "
403 "локального времени в календарное представление. Функция игнорирует "
404 "содержимое полей структуры I<tm_wday> и I<tm_yday>, заданные вызывающим. "
405 "Значение, указанное в поле I<tm_isdst>, информирует B<mktime>() о действии "
406 "летнего время (DST) в времени в структуре I<tm>: положительно значение "
407 "показывает, что действует; 0 означает, что не действует и отрицательное "
408 "значение означает, что B<mktime>() должна попытаться определить "
409 "самостоятельно, действует ли летнее время (используя информацию о часовом "
410 "поясе и базы данных системы)."
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, fuzzy
416 #| msgid ""
417 #| "The B<mktime>() function modifies the fields of the I<tm> structure as "
418 #| "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
419 #| "contents of the other fields; if structure members are outside their "
420 #| "valid interval, they will be normalized (so that, for example, 40 October "
421 #| "is changed into 9 November); I<tm_isdst> is set (regardless of its "
422 #| "initial value) to a positive value or to 0, respectively, to indicate "
423 #| "whether DST is or is not in effect at the specified time. Calling "
424 #| "B<mktime>() also sets the external variable I<tzname> with information "
425 #| "about the current timezone."
426 msgid ""
427 "The B<mktime>() function modifies the fields of the I<tm> structure as "
428 "follows: I<tm_wday> and I<tm_yday> are set to values determined from the "
429 "contents of the other fields; if structure members are outside their valid "
430 "interval, they will be normalized (so that, for example, 40 October is "
431 "changed into 9 November); I<tm_isdst> is set (regardless of its initial "
432 "value) to a positive value or to 0, respectively, to indicate whether DST "
433 "is or is not in effect at the specified time. The function also sets the "
434 "external variables I<tzname>, I<timezone>, and I<daylight> as if it called "
435 "B<tzset>(3)."
436 msgstr ""
437 "Функция B<mktime>() изменяет поля структуры I<tm> следующим образом: в "
438 "I<tm_wday> и I<tm_yday> записываются значения, определённые на основе "
439 "содержимого других полей; если члены структуры вне своих допустимых "
440 "интервалов, то они будут нормализованы (так, например, 40 октября "
441 "превращается в 9 ноября); в I<tm_isdst> записывается положительное значение "
442 "или 0, соответственно, для указания действия летнего времени (независимо от "
443 "его начального значения). Вызов B<mktime>() также присваивает внешней "
444 "переменной I<tzname> значение текущего часового пояса."
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 msgid ""
450 "If the specified broken-down time cannot be represented as calendar time "
451 "(seconds since the Epoch), B<mktime>() returns I<(time_t)\\ -1> and does "
452 "not alter the members of the broken-down time structure."
453 msgstr ""
454 "Если компонентное значение времени не может быть представлено как "
455 "календарное (число секунд с начала эпохи), то B<mktime>() возвращает "
456 "значение I<(time_t)\\ -1> и не изменяет значения полей структуры "
457 "компонентного значения времени."
458
459 #. type: SH
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "RETURN VALUE"
464 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "On success, B<gmtime>() and B<localtime>() return a pointer to a "
471 "I<struct\\ tm>."
472 msgstr ""
473 "При успешном выполнении функции B<gmtime>() и B<localtime>() возвращают "
474 "указатель на I<struct\\ tm>."
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid ""
480 "On success, B<gmtime_r>() and B<localtime_r>() return the address of the "
481 "structure pointed to by I<result>."
482 msgstr ""
483 "При успешном выполнении функции B<gmtime_r>() и B<localtime_r>() возвращают "
484 "адрес структуры, на которую указывает I<result>."
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid "On success, B<asctime>() and B<ctime>() return a pointer to a string."
490 msgstr ""
491 "При успешном выполнении функции B<asctime>() и B<ctime>() возвращают "
492 "указатель на строку."
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "On success, B<asctime_r>() and B<ctime_r>() return a pointer to the string "
499 "pointed to by I<buf>."
500 msgstr ""
501 "При успешном выполнении функции B<asctime_r>() и B<ctime_r>() возвращают "
502 "указатель на строку, на которую указывает I<buf>."
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "On success, B<mktime>() returns the calendar time (seconds since the "
509 "Epoch), expressed as a value of type I<time_t>."
510 msgstr ""
511 "При успешном выполнении функция B<mktime>() возвращает календарное время "
512 "(секунды с начала эпохи), выраженное значением с типом I<time_t>."
513
514 #. type: Plain text
515 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
516 #: opensuse-leap-16-1 opensuse-tumbleweed
517 #, fuzzy
518 #| msgid ""
519 #| "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
520 #| "functions return NULL on error. On error, I<errno> is set to indicate "
521 #| "the cause of the error."
522 msgid ""
523 "On error, B<mktime>() returns the value I<(time_t)\\ -1>, and leaves the "
524 "I<tm-E<gt>tm_wday> member unmodified. The remaining functions return NULL "
525 "on error. On error, I<errno> is set to indicate the error."
526 msgstr ""
527 "При ошибке функция B<mktime>() возвращает значение I<(time_t)\\ -1>. "
528 "Остальные функции при ошибке возвращают NULL. При ошибке в I<errno> "
529 "записывается причина ошибки."
530
531 #. type: SH
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "ERRORS"
536 msgstr "ОШИБКИ"
537
538 #. type: TP
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "B<EOVERFLOW>"
543 msgstr "B<EOVERFLOW>"
544
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid "The result cannot be represented."
549 msgstr "Результат не может быть представлен."
550
551 #. type: SH
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "ATTRIBUTES"
556 msgstr "АТРИБУТЫ"
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "For an explanation of the terms used in this section, see B<attributes>(7)."
563 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
564
565 #. type: tbl table
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "Interface"
570 msgstr "Интерфейс"
571
572 #. type: tbl table
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "Attribute"
577 msgstr "Атрибут"
578
579 #. type: tbl table
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "Value"
584 msgstr "Значение"
585
586 #. type: tbl table
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid ".na\n"
591 msgstr ".na\n"
592
593 #. type: tbl table
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid ".nh\n"
598 msgstr ".nh\n"
599
600 #. type: TP
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "B<asctime>()"
605 msgstr "B<asctime>()"
606
607 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
608 #. type: SS
609 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
610 #. type: tbl table
611 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
612 #. type: SS
613 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
614 #. type: SS
615 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
616 #. type: SS
617 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
618 #. type: SS
619 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
620 #. type: SS
621 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
622 #. type: SS
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "Thread safety"
627 msgstr "Безвредность в нитях"
628
629 #. type: tbl table
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 #, no-wrap
633 msgid "MT-Unsafe race:asctime locale"
634 msgstr "MT-Unsafe race:asctime locale"
635
636 #. type: TP
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 #, no-wrap
640 msgid "B<asctime_r>()"
641 msgstr "B<asctime_r>()"
642
643 #. type: tbl table
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 #, no-wrap
647 msgid "MT-Safe locale"
648 msgstr "MT-Safe locale"
649
650 #. type: TQ
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 #, no-wrap
654 msgid "B<ctime>()"
655 msgstr "B<ctime>()"
656
657 #. type: tbl table
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 #, fuzzy, no-wrap
661 #| msgid "MT-Unsafe race:tmbuf env locale"
662 msgid ""
663 "MT-Unsafe race:tmbuf\n"
664 "race:asctime env locale"
665 msgstr "MT-Unsafe race:tmbuf env locale"
666
667 #. type: tbl table
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid ""
672 "B<ctime_r>(),\n"
673 "B<gmtime_r>(),\n"
674 "B<localtime_r>(),\n"
675 "B<mktime>()"
676 msgstr ""
677 "B<ctime_r>(),\n"
678 "B<gmtime_r>(),\n"
679 "B<localtime_r>(),\n"
680 "B<mktime>()"
681
682 #. type: tbl table
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "MT-Safe env locale"
687 msgstr "MT-Safe env locale"
688
689 #. type: tbl table
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid ""
694 "B<gmtime>(),\n"
695 "B<localtime>()"
696 msgstr ""
697 "B<gmtime>(),\n"
698 "B<localtime>()"
699
700 #. type: tbl table
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "MT-Unsafe race:tmbuf env locale"
705 msgstr "MT-Unsafe race:tmbuf env locale"
706
707 #. type: SH
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "VERSIONS"
712 msgstr "ВЕРСИИ"
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 msgid ""
718 "POSIX doesn't specify the parameters of B<ctime_r>() to be I<restrict>; "
719 "that is specific to glibc."
720 msgstr ""
721
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 msgid ""
726 "In many implementations, including glibc, a 0 in I<tm_mday> is interpreted "
727 "as meaning the last day of the preceding month."
728 msgstr ""
729 "Во многих реализациях, включая glibc, 0 в I<tm_mday> означает последний день "
730 "предыдущего месяца."
731
732 #. See http://thread.gmane.org/gmane.comp.time.tz/2034/
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, fuzzy
737 #| msgid ""
738 #| "According to POSIX.1-2004, B<localtime>() is required to behave as "
739 #| "though B<tzset>(3) was called, while B<localtime_r>() does not have "
740 #| "this requirement. For portable code, B<tzset>(3) should be called "
741 #| "before B<localtime_r>()."
742 msgid ""
743 "According to POSIX.1, B<localtime>() is required to behave as though "
744 "B<tzset>(3) was called, while B<localtime_r>() does not have this "
745 "requirement. For portable code, B<tzset>(3) should be called before "
746 "B<localtime_r>()."
747 msgstr ""
748 "Согласно POSIX.1-2004, для B<localtime>() требуется повторить поведение как "
749 "если бы была вызвана B<tzset>(3), хотя для B<localtime_r>() такого "
750 "требования не выдвигается. В целях переносимости в коде нужно вызывать "
751 "B<tzset>(3) перед B<localtime_r>()."
752
753 #. type: SH
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "STANDARDS"
758 msgstr "СТАНДАРТЫ"
759
760 #. type: TP
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 #, fuzzy, no-wrap
764 #| msgid "B<ctime>()"
765 msgid "B<gmtime>()"
766 msgstr "B<ctime>()"
767
768 #. type: TQ
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 #, fuzzy, no-wrap
772 #| msgid "B<ctime>()"
773 msgid "B<localtime>()"
774 msgstr "B<ctime>()"
775
776 #. type: TQ
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 #, fuzzy, no-wrap
780 #| msgid "B<ctime>()"
781 msgid "B<mktime>()"
782 msgstr "B<ctime>()"
783
784 #. type: Plain text
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 #, fuzzy
788 #| msgid "C11, POSIX.1-2008."
789 msgid "C23, POSIX.1-2024."
790 msgstr "C11, POSIX.1-2008."
791
792 #. type: TP
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, fuzzy, no-wrap
796 #| msgid "B<asctime_r>()"
797 msgid "B<gmtime_r>()"
798 msgstr "B<asctime_r>()"
799
800 #. type: TQ
801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
803 #, fuzzy, no-wrap
804 #| msgid "B<asctime_r>()"
805 msgid "B<localtime_r>()"
806 msgstr "B<asctime_r>()"
807
808 #. type: Plain text
809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
811 msgid "POSIX.1-2024."
812 msgstr "POSIX.1-2024."
813
814 #. type: TQ
815 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
816 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
817 #, fuzzy, no-wrap
818 #| msgid "B<asctime_r>()"
819 msgid "B<ctime_r>()"
820 msgstr "B<asctime_r>()"
821
822 #. type: Plain text
823 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
824 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
825 msgid "None."
826 msgstr "Отсутствуют."
827
828 #. type: SH
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "HISTORY"
833 msgstr "ИСТОРИЯ"
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 #, fuzzy
839 #| msgid "C89, POSIX.1-2001."
840 msgid "C89, POSIX.1-1988."
841 msgstr "C89, POSIX.1-2001."
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 "
848 "(recommending B<strftime>(3))."
849 msgstr ""
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 #, fuzzy
855 #| msgid "POSIX.1-2001, C99."
856 msgid "POSIX.1-1996."
857 msgstr "POSIX.1-2001, C99."
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid ""
863 "POSIX.1-1996. Marked obsolescent in POSIX.1-2008. Removed in POSIX.1-2024 "
864 "(recommending B<strftime>(3))."
865 msgstr ""
866
867 #. type: SH
868 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
869 #: opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid "CAVEATS"
872 msgstr ""
873
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 #, fuzzy
878 #| msgid ""
879 #| "The four functions B<asctime>(), B<ctime>(), B<gmtime>() and "
880 #| "B<localtime>() return a pointer to static data and hence are not thread-"
881 #| "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
882 #| "B<gmtime_r>() and B<localtime_r>(), are specified by SUSv2."
883 msgid ""
884 "The four functions B<asctime>(), B<ctime>(), B<gmtime>(), and "
885 "B<localtime>() return a pointer to static data and hence are not thread-"
886 "safe. The thread-safe versions, B<asctime_r>(), B<ctime_r>(), "
887 "B<gmtime_r>(), and B<localtime_r>(), are specified by SUSv2."
888 msgstr ""
889 "Функции B<asctime>(), B<ctime>(), B<gmtime>() и B<localtime>() возвращают "
890 "указатель на статические данные и небезопасны при использовании в нитях. "
891 "Безопасными являются их аналоги B<asctime_r>(), B<ctime_r>(), B<gmtime_r>() "
892 "и B<localtime_r>(), введённые в SUSv2."
893
894 #. type: Plain text
895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
897 #, fuzzy
898 #| msgid ""
899 #| "POSIX.1-2001 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
900 #| "B<localtime>() functions shall return values in one of two static "
901 #| "objects: a broken-down time structure and an array of type I<char>. "
902 #| "Execution of any of the functions may overwrite the information returned "
903 #| "in either of these objects by any of the other functions.\" This can "
904 #| "occur in the glibc implementation."
905 msgid ""
906 "POSIX.1 says: \"The B<asctime>(), B<ctime>(), B<gmtime>(), and "
907 "B<localtime>() functions shall return values in one of two static objects: "
908 "a broken-down time structure and an array of type I<char>. Execution of any "
909 "of the functions that return a pointer to one of these object types may "
910 "overwrite the information in any object of the same type pointed to by the "
911 "value returned from any previous call to any of them.\" This can occur in "
912 "the glibc implementation."
913 msgstr ""
914 "В POSIX.1-2001 сказано: «Функции B<asctime>(), B<ctime>(), B<gmtime>() и "
915 "B<localtime>() должны возвращать значения в одном из двух статических "
916 "объектов: структуре компонентного значения времени и массиве типа I<char>. "
917 "Выполнение любой функции может перезаписать данные, возвращённые ранее любой "
918 "другой функцией в любом из этих объектов.» Это может происходить в "
919 "реализации glibc."
920
921 #. type: SS
922 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
923 #: opensuse-leap-16-1 opensuse-tumbleweed
924 #, fuzzy, no-wrap
925 #| msgid "B<ctime>()"
926 msgid "mktime()"
927 msgstr "B<ctime>()"
928
929 #. type: Plain text
930 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
931 #: opensuse-leap-16-1 opensuse-tumbleweed
932 msgid ""
933 "I<(time_t) -1> can represent a valid time (one second before the Epoch). To "
934 "determine whether B<mktime>() failed, one must use the I<tm-E<gt>tm_wday> "
935 "field. See the example program in EXAMPLES."
936 msgstr ""
937
938 #. type: Plain text
939 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
940 #: opensuse-leap-16-1 opensuse-tumbleweed
941 msgid ""
942 "The handling of a non-negative I<tm_isdst> in B<mktime>() is poorly "
943 "specified, and passing a value that is incorrect for the time specified "
944 "yields unspecified results. Since B<mktime>() is one of the few functions "
945 "that knows when DST is in effect, providing a correct value may be "
946 "difficult. One workaround for this is to call B<mktime>() twice, once with "
947 "I<tm_isdst> set to zero, and once with I<tm_isdst> set to a positive value, "
948 "and discarding the results from the call that changes it. If neither call "
949 "changes I<tm_isdst> then the time specified probably happens during a fall-"
950 "back period where DST begins or ends, and both results are valid but "
951 "represent two different times. If both calls change it, that could indicate "
952 "a fall-forward transition, or some other reason why the time specified does "
953 "not exist."
954 msgstr ""
955
956 #. type: Plain text
957 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
958 #: opensuse-leap-16-1 opensuse-tumbleweed
959 msgid ""
960 "The specification of time zones and daylight saving time are up to regional "
961 "governments, change often, and may include discontinuities beyond "
962 "I<mktime>'s ability to document a result. For example, a change in the "
963 "timezone definition may cause a clock time to be repeated or skipped without "
964 "a corresponding DST change."
965 msgstr ""
966
967 #. type: SH
968 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
969 #: opensuse-leap-16-1 opensuse-tumbleweed
970 #, no-wrap
971 msgid "EXAMPLES"
972 msgstr "ПРИМЕРЫ"
973
974 #. type: Plain text
975 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
976 #: opensuse-leap-16-1 opensuse-tumbleweed
977 msgid ""
978 "The program below defines a wrapper that allows detecting invalid and "
979 "ambiguous times, with B<EINVAL> and B<ENOTUNIQ>, respectively."
980 msgstr ""
981
982 #. type: Plain text
983 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
984 #: opensuse-leap-16-1 opensuse-tumbleweed
985 #, fuzzy
986 #| msgid "The following shell session shows a sample run of the program:"
987 msgid "The following shell session shows sample runs of the program:"
988 msgstr "Пример сеанса работы с программой:"
989
990 #. type: Plain text
991 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
992 #: opensuse-leap-16-1 opensuse-tumbleweed
993 #, no-wrap
994 msgid ""
995 "$\\ B<TZ=UTC ./a.out 1969 12 31 23 59 59 0>;\n"
996 "-1\n"
997 "$\n"
998 "$\\ B<export TZ=Europe/Madrid>;\n"
999 "$\n"
1000 "$\\ B<./a.out 2147483647 2147483647 00 00 00 00 -1>;\n"
1001 "a.out: mktime: Value too large for defined data type\n"
1002 "$\n"
1003 "$\\ B<./a.out 2024 08 23 00 17 53 -1>;\n"
1004 "1724365073\n"
1005 "$\\ B<./a.out 2024 08 23 00 17 53 0>;\n"
1006 "a.out: my_mktime: Invalid argument\n"
1007 "1724368673\n"
1008 "$\\ B<./a.out 2024 08 23 00 17 53 1>;\n"
1009 "1724365073\n"
1010 "$\n"
1011 "$\\ B<./a.out 2024 02 23 00 17 53 -1>;\n"
1012 "1708643873\n"
1013 "$\\ B<./a.out 2024 02 23 00 17 53 0>;\n"
1014 "1708643873\n"
1015 "$\\ B<./a.out 2024 02 23 00 17 53 1>;\n"
1016 "a.out: my_mktime: Invalid argument\n"
1017 "1708640273\n"
1018 "$\n"
1019 "$\\ B<./a.out 2023 03 26 02 17 53 -1>;\n"
1020 "a.out: my_mktime: Invalid argument\n"
1021 "1679793473\n"
1022 "$\n"
1023 "$\\ B<./a.out 2023 10 29 02 17 53 -1>;\n"
1024 "a.out: my_mktime: Name not unique on network\n"
1025 "1698542273\n"
1026 "$\\ B<./a.out 2023 10 29 02 17 53 0>;\n"
1027 "1698542273\n"
1028 "$\\ B<./a.out 2023 10 29 02 17 53 1>;\n"
1029 "1698538673\n"
1030 "$\n"
1031 "$\\ B<./a.out 2023 02 29 12 00 00 -1>;\n"
1032 "a.out: my_mktime: Invalid argument\n"
1033 "1677668400\n"
1034 msgstr ""
1035
1036 #. type: SS
1037 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1038 #: opensuse-leap-16-1 opensuse-tumbleweed
1039 #, fuzzy, no-wrap
1040 #| msgid "Program source"
1041 msgid "Program source: mktime.c"
1042 msgstr "Исходный код программы"
1043
1044 #. type: Plain text
1045 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1046 #: opensuse-tumbleweed
1047 #, no-wrap
1048 msgid ""
1049 "#include E<lt>err.hE<gt>\n"
1050 "#include E<lt>errno.hE<gt>\n"
1051 "#include E<lt>stdint.hE<gt>\n"
1052 "#include E<lt>stdio.hE<gt>\n"
1053 "#include E<lt>stdlib.hE<gt>\n"
1054 "#include E<lt>string.hE<gt>\n"
1055 "#include E<lt>time.hE<gt>\n"
1056 "\\&\n"
1057 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1058 "\\&\n"
1059 "static time_t my_mktime(struct tm *tp);\n"
1060 "\\&\n"
1061 "int\n"
1062 "main(int argc, char *argv[])\n"
1063 "{\n"
1064 " char **p;\n"
1065 " time_t t;\n"
1066 " struct tm tm;\n"
1067 "\\&\n"
1068 " if (argc != 8) {\n"
1069 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1070 " exit(EXIT_FAILURE);\n"
1071 " }\n"
1072 "\\&\n"
1073 " p = &argv[1];\n"
1074 " tm.tm_year = atoi(*p++) - 1900;\n"
1075 " tm.tm_mon = atoi(*p++) - 1;\n"
1076 " tm.tm_mday = atoi(*p++);\n"
1077 " tm.tm_hour = atoi(*p++);\n"
1078 " tm.tm_min = atoi(*p++);\n"
1079 " tm.tm_sec = atoi(*p++);\n"
1080 " tm.tm_isdst = atoi(*p++);\n"
1081 "\\&\n"
1082 " errno = 0;\n"
1083 " tm.tm_wday = -1;\n"
1084 " t = my_mktime(&tm);\n"
1085 " if (tm.tm_wday == -1)\n"
1086 " err(EXIT_FAILURE, \"mktime\");\n"
1087 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1088 " warn(\"my_mktime\");\n"
1089 "\\&\n"
1090 " if (is_signed(time_t))\n"
1091 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1092 " else\n"
1093 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1094 "\\&\n"
1095 " exit(EXIT_SUCCESS);\n"
1096 "}\n"
1097 "\\&\n"
1098 "static time_t\n"
1099 "my_mktime(struct tm *tp)\n"
1100 "{\n"
1101 " int e, isdst;\n"
1102 " time_t t;\n"
1103 " struct tm tm;\n"
1104 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1105 "\\&\n"
1106 " e = errno;\n"
1107 "\\&\n"
1108 " tm = *tp;\n"
1109 " isdst = tp-E<gt>tm_isdst;\n"
1110 "\\&\n"
1111 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1112 " tp-E<gt>tm_wday = -1;\n"
1113 " t = mktime(tp);\n"
1114 " if (tp-E<gt>tm_wday == -1) {\n"
1115 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1116 " return -1;\n"
1117 " }\n"
1118 "\\&\n"
1119 " if (isdst == -1)\n"
1120 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1121 "\\&\n"
1122 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1123 " || tm.tm_min != tp-E<gt>tm_min\n"
1124 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1125 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1126 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1127 " || tm.tm_year != tp-E<gt>tm_year\n"
1128 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1129 " {\n"
1130 " errno = EINVAL;\n"
1131 " return t;\n"
1132 " }\n"
1133 "\\&\n"
1134 " if (isdst != -1)\n"
1135 " goto out;\n"
1136 "\\&\n"
1137 " tm = *tp;\n"
1138 " tm.tm_isdst = !tm.tm_isdst;\n"
1139 "\\&\n"
1140 " tm.tm_wday = -1;\n"
1141 " mktime(&tm);\n"
1142 " if (tm.tm_wday == -1)\n"
1143 " goto out;\n"
1144 "\\&\n"
1145 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1146 " errno = ENOTUNIQ;\n"
1147 " return t;\n"
1148 " }\n"
1149 "out:\n"
1150 " errno = e;\n"
1151 " return t;\n"
1152 "}\n"
1153 msgstr ""
1154
1155 #. #-#-#-#-# archlinux: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1156 #. SRC END
1157 #. type: SH
1158 #. #-#-#-#-# debian-trixie: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1159 #. type: SH
1160 #. #-#-#-#-# debian-unstable: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1161 #. SRC END
1162 #. type: SH
1163 #. #-#-#-#-# fedora-44: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1164 #. SRC END
1165 #. type: SH
1166 #. #-#-#-#-# fedora-rawhide: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1167 #. SRC END
1168 #. type: SH
1169 #. #-#-#-#-# mageia-cauldron: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1170 #. SRC END
1171 #. type: SH
1172 #. #-#-#-#-# opensuse-leap-16-1: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1173 #. SRC END
1174 #. type: SH
1175 #. #-#-#-#-# opensuse-tumbleweed: ctime.3.pot (PACKAGE VERSION) #-#-#-#-#
1176 #. SRC END
1177 #. type: SH
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 #, no-wrap
1181 msgid "SEE ALSO"
1182 msgstr "СМОТРИТЕ ТАКЖЕ"
1183
1184 #. type: Plain text
1185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1187 msgid ""
1188 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1189 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1190 "B<time>(7)"
1191 msgstr ""
1192 "B<date>(1), B<gettimeofday>(2), B<time>(2), B<utime>(2), B<clock>(3), "
1193 "B<difftime>(3), B<strftime>(3), B<strptime>(3), B<timegm>(3), B<tzset>(3), "
1194 "B<time>(7)"
1195
1196 #. type: TH
1197 #: debian-trixie
1198 #, no-wrap
1199 msgid "2024-06-15"
1200 msgstr "15 июня 2024 г."
1201
1202 #. type: TH
1203 #: debian-trixie
1204 #, no-wrap
1205 msgid "Linux man-pages 6.9.1"
1206 msgstr "Страницы руководства Linux 6.9.1"
1207
1208 #. type: Plain text
1209 #: debian-trixie
1210 msgid "Standard C library (I<libc>, I<-lc>)"
1211 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1212
1213 #. type: Plain text
1214 #: debian-trixie fedora-44 fedora-rawhide
1215 msgid ""
1216 "The call B<ctime(>I<t>B<)> is equivalent to B<asctime(localtime(>I<t>B<))>. "
1217 "It converts the calendar time I<t> into a null-terminated string of the form"
1218 msgstr ""
1219 "Вызов B<ctime(>I<t>B<)> эквивалентен B<asctime(localtime(>I<t>B<))>. Он "
1220 "преобразует календарное время I<t> в строку (с null в конце) вида"
1221
1222 #. type: Plain text
1223 #: debian-trixie
1224 msgid ""
1225 "The B<mktime>() function converts a broken-down time structure, expressed "
1226 "as local time, to calendar time representation. The function ignores the "
1227 "values supplied by the caller in the I<tm_wday> and I<tm_yday> fields. The "
1228 "value specified in the I<tm_isdst> field informs B<mktime>() whether or not "
1229 "daylight saving time (DST) is in effect for the time supplied in the I<tm> "
1230 "structure: a positive value means DST is in effect; zero means that DST is "
1231 "not in effect; and a negative value means that B<mktime>() should (use "
1232 "timezone information and system databases to) attempt to determine whether "
1233 "DST is in effect at the specified time."
1234 msgstr ""
1235 "Функция B<mktime>() преобразует компонентное структурированное значение "
1236 "локального времени в календарное представление. Функция игнорирует "
1237 "содержимое полей структуры I<tm_wday> и I<tm_yday>, заданные вызывающим. "
1238 "Значение, указанное в поле I<tm_isdst>, информирует B<mktime>() о действии "
1239 "летнего время (DST) в времени в структуре I<tm>: положительно значение "
1240 "показывает, что действует; 0 означает, что не действует и отрицательное "
1241 "значение означает, что B<mktime>() должна попытаться определить "
1242 "самостоятельно, действует ли летнее время (используя информацию о часовом "
1243 "поясе и базы данных системы)."
1244
1245 #. type: Plain text
1246 #: debian-trixie
1247 #, fuzzy
1248 #| msgid ""
1249 #| "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1250 #| "functions return NULL on error. On error, I<errno> is set to indicate "
1251 #| "the cause of the error."
1252 msgid ""
1253 "On error, B<mktime>() returns the value I<(time_t)\\ -1>. The remaining "
1254 "functions return NULL on error. On error, I<errno> is set to indicate the "
1255 "error."
1256 msgstr ""
1257 "При ошибке функция B<mktime>() возвращает значение I<(time_t)\\ -1>. "
1258 "Остальные функции при ошибке возвращают NULL. При ошибке в I<errno> "
1259 "записывается причина ошибки."
1260
1261 #. type: SH
1262 #: debian-trixie
1263 #, no-wrap
1264 msgid "NOTES"
1265 msgstr "ПРИМЕЧАНИЯ"
1266
1267 #. type: TH
1268 #: fedora-44 fedora-rawhide
1269 #, no-wrap
1270 msgid "2025-02-18"
1271 msgstr "18 февраля 2025 г."
1272
1273 #. type: TH
1274 #: fedora-44 fedora-rawhide
1275 #, no-wrap
1276 msgid "Linux man-pages 6.13"
1277 msgstr "Страницы руководства Linux 6.13"
1278
1279 #. type: Plain text
1280 #: fedora-44 fedora-rawhide
1281 #, no-wrap
1282 msgid ""
1283 "#include E<lt>err.hE<gt>\n"
1284 "#include E<lt>errno.hE<gt>\n"
1285 "#include E<lt>stdint.hE<gt>\n"
1286 "#include E<lt>stdio.hE<gt>\n"
1287 "#include E<lt>stdlib.hE<gt>\n"
1288 "#include E<lt>string.hE<gt>\n"
1289 "#include E<lt>time.hE<gt>\n"
1290 "\\&\n"
1291 "#define is_signed(T) ((T) -1 E<lt> 1)\n"
1292 "\\&\n"
1293 "time_t my_mktime(struct tm *tp);\n"
1294 "\\&\n"
1295 "int\n"
1296 "main(int argc, char *argv[])\n"
1297 "{\n"
1298 " char **p;\n"
1299 " time_t t;\n"
1300 " struct tm tm;\n"
1301 "\\&\n"
1302 " if (argc != 8) {\n"
1303 " fprintf(stderr, \"Usage: %s yyyy mm dd HH MM SS isdst\\[rs]n\", argv[0]);\n"
1304 " exit(EXIT_FAILURE);\n"
1305 " }\n"
1306 "\\&\n"
1307 " p = &argv[1];\n"
1308 " tm.tm_year = atoi(*p++) - 1900;\n"
1309 " tm.tm_mon = atoi(*p++) - 1;\n"
1310 " tm.tm_mday = atoi(*p++);\n"
1311 " tm.tm_hour = atoi(*p++);\n"
1312 " tm.tm_min = atoi(*p++);\n"
1313 " tm.tm_sec = atoi(*p++);\n"
1314 " tm.tm_isdst = atoi(*p++);\n"
1315 "\\&\n"
1316 " errno = 0;\n"
1317 " tm.tm_wday = -1;\n"
1318 " t = my_mktime(&tm);\n"
1319 " if (tm.tm_wday == -1)\n"
1320 " err(EXIT_FAILURE, \"mktime\");\n"
1321 " if (errno == EINVAL || errno == ENOTUNIQ)\n"
1322 " warn(\"my_mktime\");\n"
1323 "\\&\n"
1324 " if (is_signed(time_t))\n"
1325 " printf(\"%jd\\[rs]n\", (intmax_t) t);\n"
1326 " else\n"
1327 " printf(\"%ju\\[rs]n\", (uintmax_t) t);\n"
1328 "\\&\n"
1329 " exit(EXIT_SUCCESS);\n"
1330 "}\n"
1331 "\\&\n"
1332 "time_t\n"
1333 "my_mktime(struct tm *tp)\n"
1334 "{\n"
1335 " int e, isdst;\n"
1336 " time_t t;\n"
1337 " struct tm tm;\n"
1338 " unsigned char wday[sizeof(tp-E<gt>tm_wday)];\n"
1339 "\\&\n"
1340 " e = errno;\n"
1341 "\\&\n"
1342 " tm = *tp;\n"
1343 " isdst = tp-E<gt>tm_isdst;\n"
1344 "\\&\n"
1345 " memcpy(wday, &tp-E<gt>tm_wday, sizeof(wday));\n"
1346 " tp-E<gt>tm_wday = -1;\n"
1347 " t = mktime(tp);\n"
1348 " if (tp-E<gt>tm_wday == -1) {\n"
1349 " memcpy(&tp-E<gt>tm_wday, wday, sizeof(wday));\n"
1350 " return -1;\n"
1351 " }\n"
1352 "\\&\n"
1353 " if (isdst == -1)\n"
1354 " tm.tm_isdst = tp-E<gt>tm_isdst;\n"
1355 "\\&\n"
1356 " if ( tm.tm_sec != tp-E<gt>tm_sec\n"
1357 " || tm.tm_min != tp-E<gt>tm_min\n"
1358 " || tm.tm_hour != tp-E<gt>tm_hour\n"
1359 " || tm.tm_mday != tp-E<gt>tm_mday\n"
1360 " || tm.tm_mon != tp-E<gt>tm_mon\n"
1361 " || tm.tm_year != tp-E<gt>tm_year\n"
1362 " || tm.tm_isdst != tp-E<gt>tm_isdst)\n"
1363 " {\n"
1364 " errno = EINVAL;\n"
1365 " return t;\n"
1366 " }\n"
1367 "\\&\n"
1368 " if (isdst != -1)\n"
1369 " goto out;\n"
1370 "\\&\n"
1371 " tm = *tp;\n"
1372 " tm.tm_isdst = !tm.tm_isdst;\n"
1373 "\\&\n"
1374 " tm.tm_wday = -1;\n"
1375 " mktime(&tm);\n"
1376 " if (tm.tm_wday == -1)\n"
1377 " goto out;\n"
1378 "\\&\n"
1379 " if (tm.tm_isdst != tp-E<gt>tm_isdst) {\n"
1380 " errno = ENOTUNIQ;\n"
1381 " return t;\n"
1382 " }\n"
1383 "out:\n"
1384 " errno = e;\n"
1385 " return t;\n"
1386 "}\n"
1387 msgstr ""
1388
1389 #. type: TH
1390 #: mageia-cauldron
1391 #, no-wrap
1392 msgid "Linux man-pages 6.17"
1393 msgstr "Страницы руководства Linux 6.17"
1394
1395 #. type: TH
1396 #: opensuse-leap-16-1 opensuse-tumbleweed
1397 #, no-wrap
1398 msgid "Linux man-pages (unreleased)"
1399 msgstr "Страницы руководства Linux (не выпущены)"