Debian Codegraph @

po/ar/man3/ctime.3.po

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