1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
|
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-03-29 09:41+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "HWCLOCK"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "2022-05-11"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "util-linux 2.38.1"
msgstr ""
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "System Administration"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "NAME"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "hwclock - time clocks utility"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "SYNOPSIS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<hwclock> [I<function>] [I<option>...]"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "DESCRIPTION"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<hwclock> is an administration tool for the time clocks. It can: display "
"the Hardware Clock time; set the Hardware Clock to a specified time; set the "
"Hardware Clock from the System Clock; set the System Clock from the Hardware "
"Clock; compensate for Hardware Clock drift; correct the System Clock "
"timescale; set the kernel\\(cqs timezone, NTP timescale, and epoch (Alpha "
"only); and predict future Hardware Clock values based on its drift rate."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Since v2.26 important changes were made to the B<--hctosys> function and the "
"B<--directisa> option, and a new option B<--update-drift> was added. See "
"their respective descriptions below."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "FUNCTIONS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The following functions are mutually exclusive, only one can be given at a "
"time. If none is given, the default is B<--show>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-a, --adjust>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Add or subtract time from the Hardware Clock to account for systematic drift "
"since the last time the clock was set or adjusted. See the discussion below, "
"under B<The Adjust Function>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--getepoch>; B<--setepoch>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"These functions are for Alpha machines only, and are only available through "
"the Linux kernel RTC driver."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"They are used to read and set the kernel\\(cqs Hardware Clock epoch value. "
"Epoch is the number of years into AD to which a zero year value in the "
"Hardware Clock refers. For example, if the machine\\(cqs BIOS sets the year "
"counter in the Hardware Clock to contain the number of full years since "
"1952, then the kernel\\(cqs Hardware Clock epoch value must be 1952."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The B<--setepoch> function requires using the B<--epoch> option to specify "
"the year. For example:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<hwclock --setepoch --epoch=1952>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The RTC driver attempts to guess the correct epoch value, so setting it may "
"not be required."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This epoch value is used whenever B<hwclock> reads or sets the Hardware "
"Clock on an Alpha machine. For ISA machines the kernel uses the fixed "
"Hardware Clock epoch of 1900."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--param-get=>I<parameter>; B<--param-set=>I<parameter>=I<value>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Read and set the RTC\\(cqs parameter. This is useful, for example, to "
"retrieve the RTC\\(cqs feature or set the RTC\\(cqs Backup Switchover Mode."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"I<parameter> is either a numeric RTC parameter value (see the Kernel\\(cqs "
"I<include/uapi/linux/rtc.h>) or an alias. See B<--help> for a list of valid "
"aliases. I<parameter> and I<value>, if prefixed with 0x, are interpreted as "
"hexadecimal, otherwise decimal values."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--predict>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Predict what the Hardware Clock will read in the future based upon the time "
"given by the B<--date> option and the information in I</etc/adjtime>. This "
"is useful, for example, to account for drift when setting a Hardware Clock "
"wakeup (aka alarm). See B<rtcwake>(8)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Do not use this function if the Hardware Clock is being modified by anything "
"other than the current operating system\\(cqs B<hwclock> command, such as "
"\\(aq11 minute mode\\(aq or from dual-booting another OS."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-r>, B<--show>; B<--get>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Read the Hardware Clock and print its time to standard output in the B<ISO "
"8601> format. The time shown is always in local time, even if you keep your "
"Hardware Clock in UTC. See the B<--localtime> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Showing the Hardware Clock time is the default when no function is specified."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The B<--get> function also applies drift correction to the time read, based "
"upon the information in I</etc/adjtime>. Do not use this function if the "
"Hardware Clock is being modified by anything other than the current "
"operating system\\(cqs B<hwclock> command, such as \\(aq11 minute mode\\(aq "
"or from dual-booting another OS."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-s>, B<--hctosys>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Set the System Clock from the Hardware Clock. The time read from the "
"Hardware Clock is compensated to account for systematic drift before using "
"it to set the System Clock. See the discussion below, under B<The Adjust "
"Function>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The System Clock must be kept in the UTC timescale for date-time "
"applications to work correctly in conjunction with the timezone configured "
"for the system. If the Hardware Clock is kept in local time then the time "
"read from it must be shifted to the UTC timescale before using it to set the "
"System Clock. The B<--hctosys> function does this based upon the information "
"in the I</etc/adjtime> file or the command line arguments B<--localtime> and "
"B<--utc>. Note: no daylight saving adjustment is made. See the discussion "
"below, under B<LOCAL vs UTC>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The kernel also keeps a timezone value, the B<--hctosys> function sets it to "
"the timezone configured for the system. The system timezone is configured by "
"the B<TZ> environment variable or the I</etc/localtime> file, as B<tzset>(3) "
"would interpret them. The obsolete I<tz_dsttime> field of the kernel\\(cqs "
"timezone value is set to zero. (For details on what this field used to mean, "
"see B<settimeofday>(2).)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"When used in a startup script, making the B<--hctosys> function the first "
"caller of B<settimeofday>(2) from boot, it will set the NTP \\(aq11 minute "
"mode\\(aq timescale via the I<persistent_clock_is_local> kernel variable. If "
"the Hardware Clock\\(cqs timescale configuration is changed then a reboot is "
"required to inform the kernel. See the discussion below, under B<Automatic "
"Hardware Clock Synchronization by the Kernel>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This is a good function to use in one of the system startup scripts before "
"the file systems are mounted read/write."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This function should never be used on a running system. Jumping system time "
"will cause problems, such as corrupted filesystem timestamps. Also, if "
"something has changed the Hardware Clock, like NTP\\(cqs \\(aq11 minute "
"mode\\(aq, then B<--hctosys> will set the time incorrectly by including "
"drift compensation."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Drift compensation can be inhibited by setting the drift factor in I</etc/"
"adjtime> to zero. This setting will be persistent as long as the B<--update-"
"drift> option is not used with B<--systohc> at shutdown (or anywhere else). "
"Another way to inhibit this is by using the B<--noadjfile> option when "
"calling the B<--hctosys> function. A third method is to delete the I</etc/"
"adjtime> file. B<Hwclock> will then default to using the UTC timescale for "
"the Hardware Clock. If the Hardware Clock is ticking local time it will need "
"to be defined in the file. This can be done by calling B<hwclock --localtime "
"--adjust>; when the file is not present this command will not actually "
"adjust the Clock, but it will create the file with local time configured, "
"and a drift factor of zero."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"A condition under which inhibiting B<hwclock>\\(aqs drift correction may be "
"desired is when dual-booting multiple operating systems. If while this "
"instance of Linux is stopped, another OS changes the Hardware Clock\\(cqs "
"value, then when this instance is started again the drift correction applied "
"will be incorrect."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"For B<hwclock>\\(aqs drift correction to work properly it is imperative that "
"nothing changes the Hardware Clock while its Linux instance is not running."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--set>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Set the Hardware Clock to the time given by the B<--date> option, and update "
"the timestamps in I</etc/adjtime>. With the B<--update-drift> option also "
"(re)calculate the drift factor. Try it without the option if B<--set> fails. "
"See B<--update-drift> below."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--systz>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This is an alternate to the B<--hctosys> function that does not read the "
"Hardware Clock nor set the System Clock; consequently there is not any drift "
"correction. It is intended to be used in a startup script on systems with "
"kernels above version 2.6 where you know the System Clock has been set from "
"the Hardware Clock by the kernel during boot."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It does the following things that are detailed above in the B<--hctosys> "
"function:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Corrects the System Clock timescale to UTC as needed. Only instead of "
"accomplishing this by setting the System Clock, B<hwclock> simply informs "
"the kernel and it handles the change."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Sets the kernel\\(cqs NTP \\(aq11 minute mode\\(aq timescale."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Sets the kernel\\(cqs timezone."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The first two are only available on the first call of B<settimeofday>(2) "
"after boot. Consequently this option only makes sense when used in a startup "
"script. If the Hardware Clocks timescale configuration is changed then a "
"reboot would be required to inform the kernel."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-w>, B<--systohc>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Set the Hardware Clock from the System Clock, and update the timestamps in "
"I</etc/adjtime>. With the B<--update-drift> option also (re)calculate the "
"drift factor. Try it without the option if B<--systohc> fails. See B<--"
"update-drift> below."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-h>, B<--help>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Display help text and exit."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-V>, B<--version>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Print version and exit."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "OPTIONS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--adjfile=>I<filename>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Override the default I</etc/adjtime> file path."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--date=>I<date_string>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option must be used with the B<--set> or B<--predict> functions, "
"otherwise it is ignored."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<hwclock --set --date=\\(aq16:45\\(aq>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<hwclock --predict --date=\\(aq2525-08-14 07:11:05\\(aq>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The argument must be in local time, even if you keep your Hardware Clock in "
"UTC. See the B<--localtime> option. Therefore, the argument should not "
"include any timezone information. It also should not be a relative time like "
"\"+5 minutes\", because B<hwclock>\\(aqs precision depends upon correlation "
"between the argument\\(cqs value and when the enter key is pressed. "
"Fractional seconds are silently dropped. This option is capable of "
"understanding many time and date formats, but the previous parameters should "
"be observed."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--delay=>I<seconds>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option can be used to overwrite the internally used delay when setting "
"the clock time. The default is 0.5 (500ms) for rtc_cmos, for another RTC "
"types the delay is 0. If RTC type is impossible to determine (from sysfs) "
"then it defaults also to 0.5 to be backwardly compatible."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The 500ms default is based on commonly used MC146818A-compatible (x86) "
"hardware clock. This Hardware Clock can only be set to any integer time plus "
"one half second. The integer time is required because there is no interface "
"to set or get a fractional second. The additional half second delay is "
"because the Hardware Clock updates to the following second precisely 500 ms "
"after setting the new time. Unfortunately, this behavior is hardware "
"specific and in same cases another delay is required."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-D>, B<--debug>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Use B<--verbose>. The B<--debug> option has been deprecated and may be "
"repurposed or removed in a future release."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--directisa>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option is meaningful for ISA compatible machines in the x86 and x86_64 "
"family. For other machines, it has no effect. This option tells B<hwclock> "
"to use explicit I/O instructions to access the Hardware Clock. Without this "
"option, B<hwclock> will use the rtc device file, which it assumes to be "
"driven by the Linux RTC device driver. As of v2.26 it will no longer "
"automatically use directisa when the rtc driver is unavailable; this was "
"causing an unsafe condition that could allow two processes to access the "
"Hardware Clock at the same time. Direct hardware access from userspace "
"should only be used for testing, troubleshooting, and as a last resort when "
"all other methods fail. See the B<--rtc> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--epoch=>I<year>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option is required when using the B<--setepoch> function. The minimum "
"I<year> value is 1900. The maximum is system dependent (B<ULONG_MAX - 1>)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-f>, B<--rtc=>I<filename>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Override B<hwclock>\\(aqs default rtc device file name. Otherwise it will "
"use the first one found in this order: I</dev/rtc0>, I</dev/rtc>, I</dev/"
"misc/rtc>. For B<IA-64:> I</dev/efirtc> I</dev/misc/efirtc>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-l>, B<--localtime>; B<-u>, B<--utc>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Indicate which timescale the Hardware Clock is set to."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The Hardware Clock may be configured to use either the UTC or the local "
"timescale, but nothing in the clock itself says which alternative is being "
"used. The B<--localtime> or B<--utc> options give this information to the "
"B<hwclock> command. If you specify the wrong one (or specify neither and "
"take a wrong default), both setting and reading the Hardware Clock will be "
"incorrect."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If you specify neither B<--utc> nor B<--localtime> then the one last given "
"with a set function (B<--set>, B<--systohc>, or B<--adjust>), as recorded in "
"I</etc/adjtime>, will be used. If the adjtime file doesn\\(cqt exist, the "
"default is UTC."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Note: daylight saving time changes may be inconsistent when the Hardware "
"Clock is kept in local time. See the discussion below, under B<LOCAL vs UTC>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--noadjfile>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Disable the facilities provided by I</etc/adjtime>. B<hwclock> will not read "
"nor write to that file with this option. Either B<--utc> or B<--localtime> "
"must be specified when using this option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--test>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Do not actually change anything on the system, that is, the Clocks or I</etc/"
"adjtime> (B<--verbose> is implicit with this option)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<--update-drift>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Update the Hardware Clock\\(cqs drift factor in I</etc/adjtime>. It can only "
"be used with B<--set> or B<--systohc>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"A minimum four hour period between settings is required. This is to avoid "
"invalid calculations. The longer the period, the more precise the resulting "
"drift factor will be."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option was added in v2.26, because it is typical for systems to call "
"B<hwclock --systohc> at shutdown; with the old behavior this would "
"automatically (re)calculate the drift factor which caused several problems:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"When using NTP with an \\(aq11 minute mode\\(aq kernel the drift factor "
"would be clobbered to near zero."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It would not allow the use of \\(aqcold\\(aq drift correction. With most "
"configurations using \\(aqcold\\(aq drift will yield favorable results. "
"Cold, means when the machine is turned off which can have a significant "
"impact on the drift factor."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"(Re)calculating drift factor on every shutdown delivers suboptimal results. "
"For example, if ephemeral conditions cause the machine to be abnormally hot "
"the drift factor calculation would be out of range."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Significantly increased system shutdown times (as of v2.31 when not using "
"B<--update-drift> the RTC is not read)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Having B<hwclock> calculate the drift factor is a good starting point, but "
"for optimal results it will likely need to be adjusted by directly editing "
"the I</etc/adjtime> file. For most configurations once a machine\\(cqs "
"optimal drift factor is crafted it should not need to be changed. Therefore, "
"the old behavior to automatically (re)calculate drift was changed and now "
"requires this option to be used. See the discussion below, under B<The "
"Adjust Function>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This option requires reading the Hardware Clock before setting it. If it "
"cannot be read, then this option will cause the set functions to fail. This "
"can happen, for example, if the Hardware Clock is corrupted by a power "
"failure. In that case, the clock must first be set without this option. "
"Despite it not working, the resulting drift correction factor would be "
"invalid anyway."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<-v>, B<--verbose>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Display more details about what B<hwclock> is doing internally."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Clocks in a Linux System"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "There are two types of date-time clocks:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<The Hardware Clock:> This clock is an independent hardware device, with "
"its own power domain (battery, capacitor, etc), that operates when the "
"machine is powered off, or even unplugged."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"On an ISA compatible system, this clock is specified as part of the ISA "
"standard. A control program can read or set this clock only to a whole "
"second, but it can also detect the edges of the 1 second clock ticks, so the "
"clock actually has virtually infinite precision."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This clock is commonly called the hardware clock, the real time clock, the "
"RTC, the BIOS clock, and the CMOS clock. Hardware Clock, in its capitalized "
"form, was coined for use by B<hwclock>. The Linux kernel also refers to it "
"as the persistent clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Some non-ISA systems have a few real time clocks with only one of them "
"having its own power domain. A very low power external I2C or SPI clock chip "
"might be used with a backup battery as the hardware clock to initialize a "
"more functional integrated real-time clock which is used for most other "
"purposes."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<The System Clock:> This clock is part of the Linux kernel and is driven by "
"a timer interrupt. (On an ISA machine, the timer interrupt is part of the "
"ISA standard.) It has meaning only while Linux is running on the machine. "
"The System Time is the number of seconds since 00:00:00 January 1, 1970 UTC "
"(or more succinctly, the number of seconds since 1969 UTC). The System Time "
"is not an integer, though. It has virtually infinite precision."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The System Time is the time that matters. The Hardware Clock\\(cqs basic "
"purpose is to keep time when Linux is not running so that the System Clock "
"can be initialized from it at boot. Note that in DOS, for which ISA was "
"designed, the Hardware Clock is the only real time clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It is important that the System Time not have any discontinuities such as "
"would happen if you used the B<date>(1) program to set it while the system "
"is running. You can, however, do whatever you want to the Hardware Clock "
"while the system is running, and the next time Linux starts up, it will do "
"so with the adjusted time from the Hardware Clock. Note: currently this is "
"not possible on most systems because B<hwclock --systohc> is called at "
"shutdown."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The Linux kernel\\(cqs timezone is set by B<hwclock>. But don\\(cqt be "
"misled \\(em almost nobody cares what timezone the kernel thinks it is in. "
"Instead, programs that care about the timezone (perhaps because they want to "
"display a local time for you) almost always use a more traditional method of "
"determining the timezone: They use the B<TZ> environment variable or the I</"
"etc/localtime> file, as explained in the man page for B<tzset>(3). However, "
"some programs and fringe parts of the Linux kernel such as filesystems use "
"the kernel\\(cqs timezone value. An example is the vfat filesystem. If the "
"kernel timezone value is wrong, the vfat filesystem will report and set the "
"wrong timestamps on files. Another example is the kernel\\(cqs NTP \\(aq11 "
"minute mode\\(aq. If the kernel\\(cqs timezone value and/or the "
"I<persistent_clock_is_local> variable are wrong, then the Hardware Clock "
"will be set incorrectly by \\(aq11 minute mode\\(aq. See the discussion "
"below, under B<Automatic Hardware Clock Synchronization by the Kernel>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<hwclock> sets the kernel\\(cqs timezone to the value indicated by B<TZ> or "
"I</etc/localtime> with the B<--hctosys> or B<--systz> functions."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The kernel\\(cqs timezone value actually consists of two parts: 1) a field "
"tz_minuteswest indicating how many minutes local time (not adjusted for DST) "
"lags behind UTC, and 2) a field tz_dsttime indicating the type of Daylight "
"Savings Time (DST) convention that is in effect in the locality at the "
"present time. This second field is not used under Linux and is always zero. "
"See also B<settimeofday>(2)."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Hardware Clock Access Methods"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<hwclock> uses many different ways to get and set Hardware Clock values. "
"The most normal way is to do I/O to the rtc device special file, which is "
"presumed to be driven by the rtc device driver. Also, Linux systems using "
"the rtc framework with udev, are capable of supporting multiple Hardware "
"Clocks. This may bring about the need to override the default rtc device by "
"specifying one with the B<--rtc> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"However, this method is not always available as older systems do not have an "
"rtc driver. On these systems, the method of accessing the Hardware Clock "
"depends on the system hardware."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"On an ISA compatible system, B<hwclock> can directly access the \"CMOS "
"memory\" registers that constitute the clock, by doing I/O to Ports 0x70 and "
"0x71. It does this with actual I/O instructions and consequently can only do "
"it if running with superuser effective userid. This method may be used by "
"specifying the B<--directisa> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This is a really poor method of accessing the clock, for all the reasons "
"that userspace programs are generally not supposed to do direct I/O and "
"disable interrupts. B<hwclock> provides it for testing, troubleshooting, and "
"because it may be the only method available on ISA systems which do not have "
"a working rtc device driver."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "The Adjust Function"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The Hardware Clock is usually not very accurate. However, much of its "
"inaccuracy is completely predictable - it gains or loses the same amount of "
"time every day. This is called systematic drift. B<hwclock>\\(aqs B<--"
"adjust> function lets you apply systematic drift corrections to the Hardware "
"Clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It works like this: B<hwclock> keeps a file, I</etc/adjtime>, that keeps "
"some historical information. This is called the adjtime file."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Suppose you start with no adjtime file. You issue a B<hwclock --set> command "
"to set the Hardware Clock to the true current time. B<hwclock> creates the "
"adjtime file and records in it the current time as the last time the clock "
"was calibrated. Five days later, the clock has gained 10 seconds, so you "
"issue a B<hwclock --set --update-drift> command to set it back 10 seconds. "
"B<hwclock> updates the adjtime file to show the current time as the last "
"time the clock was calibrated, and records 2 seconds per day as the "
"systematic drift rate. 24 hours go by, and then you issue a B<hwclock --"
"adjust> command. B<hwclock> consults the adjtime file and sees that the "
"clock gains 2 seconds per day when left alone and that it has been left "
"alone for exactly one day. So it subtracts 2 seconds from the Hardware "
"Clock. It then records the current time as the last time the clock was "
"adjusted. Another 24 hours go by and you issue another B<hwclock --adjust>. "
"B<hwclock> does the same thing: subtracts 2 seconds and updates the adjtime "
"file with the current time as the last time the clock was adjusted."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"When you use the B<--update-drift> option with B<--set> or B<--systohc>, the "
"systematic drift rate is (re)calculated by comparing the fully drift "
"corrected current Hardware Clock time with the new set time, from that it "
"derives the 24 hour drift rate based on the last calibrated timestamp from "
"the adjtime file. This updated drift factor is then saved in I</etc/adjtime>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"A small amount of error creeps in when the Hardware Clock is set, so B<--"
"adjust> refrains from making any adjustment that is less than 1 second. "
"Later on, when you request an adjustment again, the accumulated drift will "
"be more than 1 second and B<--adjust> will make the adjustment including any "
"fractional amount."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<hwclock --hctosys> also uses the adjtime file data to compensate the value "
"read from the Hardware Clock before using it to set the System Clock. It "
"does not share the 1 second limitation of B<--adjust>, and will correct sub-"
"second drift values immediately. It does not change the Hardware Clock time "
"nor the adjtime file. This may eliminate the need to use B<--adjust>, unless "
"something else on the system needs the Hardware Clock to be compensated."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "The Adjtime File"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"While named for its historical purpose of controlling adjustments only, it "
"actually contains other information used by B<hwclock> from one invocation "
"to the next."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The format of the adjtime file is, in ASCII:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Line 1: Three numbers, separated by blanks: 1) the systematic drift rate in "
"seconds per day, floating point decimal; 2) the resulting number of seconds "
"since 1969 UTC of most recent adjustment or calibration, decimal integer; 3) "
"zero (for compatibility with B<clock>(8)) as a floating point decimal."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Line 2: One number: the resulting number of seconds since 1969 UTC of most "
"recent calibration. Zero if there has been no calibration yet or it is known "
"that any previous calibration is moot (for example, because the Hardware "
"Clock has been found, since that calibration, not to contain a valid time). "
"This is a decimal integer."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Line 3: \"UTC\" or \"LOCAL\". Tells whether the Hardware Clock is set to "
"Coordinated Universal Time or local time. You can always override this value "
"with options on the B<hwclock> command line."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"You can use an adjtime file that was previously used with the B<clock>(8) "
"program with B<hwclock>."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Automatic Hardware Clock Synchronization by the Kernel"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"You should be aware of another way that the Hardware Clock is kept "
"synchronized in some systems. The Linux kernel has a mode wherein it copies "
"the System Time to the Hardware Clock every 11 minutes. This mode is a "
"compile time option, so not all kernels will have this capability. This is a "
"good mode to use when you are using something sophisticated like NTP to keep "
"your System Clock synchronized. (NTP is a way to keep your System Time "
"synchronized either to a time server somewhere on the network or to a radio "
"clock hooked up to your system. See RFC 1305.)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If the kernel is compiled with the \\(aq11 minute mode\\(aq option it will "
"be active when the kernel\\(cqs clock discipline is in a synchronized state. "
"When in this state, bit 6 (the bit that is set in the mask 0x0040) of the "
"kernel\\(cqs I<time_status> variable is unset. This value is output as the "
"\\(aqstatus\\(aq line of the B<adjtimex --print> or B<ntptime> commands."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It takes an outside influence, like the NTP daemon to put the kernel\\(cqs "
"clock discipline into a synchronized state, and therefore turn on \\(aq11 "
"minute mode\\(aq. It can be turned off by running anything that sets the "
"System Clock the old fashioned way, including B<hwclock --hctosys>. However, "
"if the NTP daemon is still running, it will turn \\(aq11 minute mode\\(aq "
"back on again the next time it synchronizes the System Clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If your system runs with \\(aq11 minute mode\\(aq on, it may need to use "
"either B<--hctosys> or B<--systz> in a startup script, especially if the "
"Hardware Clock is configured to use the local timescale. Unless the kernel "
"is informed of what timescale the Hardware Clock is using, it may clobber it "
"with the wrong one. The kernel uses UTC by default."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The first userspace command to set the System Clock informs the kernel what "
"timescale the Hardware Clock is using. This happens via the "
"I<persistent_clock_is_local> kernel variable. If B<--hctosys> or B<--systz> "
"is the first, it will set this variable according to the adjtime file or the "
"appropriate command-line argument. Note that when using this capability and "
"the Hardware Clock timescale configuration is changed, then a reboot is "
"required to notify the kernel."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<hwclock --adjust> should not be used with NTP \\(aq11 minute mode\\(aq."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "ISA Hardware Clock Century value"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"There is some sort of standard that defines CMOS memory Byte 50 on an ISA "
"machine as an indicator of what century it is. B<hwclock> does not use or "
"set that byte because there are some machines that don\\(cqt define the byte "
"that way, and it really isn\\(cqt necessary anyway, since the year-of-"
"century does a good job of implying which century it is."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If you have a bona fide use for a CMOS century byte, contact the B<hwclock> "
"maintainer; an option may be appropriate."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Note that this section is only relevant when you are using the \"direct "
"ISA\" method of accessing the Hardware Clock. ACPI provides a standard way "
"to access century values, when they are supported by the hardware."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "DATE-TIME CONFIGURATION"
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "Keeping Time without External Synchronization"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "This discussion is based on the following conditions:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Nothing is running that alters the date-time clocks, such as NTP daemon or a "
"cron job.\""
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The system timezone is configured for the correct local time. See below, "
"under B<POSIX vs \\(aqRIGHT\\(aq>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Early during startup the following are called, in this order: B<adjtimex --"
"tick> I<value> B<--frequency> I<value> B<hwclock --hctosys>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "During shutdown the following is called: B<hwclock --systohc>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Systems without B<adjtimex> may use B<ntptime>."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Whether maintaining precision time with NTP daemon or not, it makes sense to "
"configure the system to keep reasonably good date-time on its own."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The first step in making that happen is having a clear understanding of the "
"big picture. There are two completely separate hardware devices running at "
"their own speed and drifting away from the \\(aqcorrect\\(aq time at their "
"own rates. The methods and software for drift correction are different for "
"each of them. However, most systems are configured to exchange values "
"between these two clocks at startup and shutdown. Now the individual "
"device\\(cqs time keeping errors are transferred back and forth between each "
"other. Attempt to configure drift correction for only one of them, and the "
"other\\(cqs drift will be overlaid upon it."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"This problem can be avoided when configuring drift correction for the System "
"Clock by simply not shutting down the machine. This, plus the fact that all "
"of B<hwclock>\\(aqs precision (including calculating drift factors) depends "
"upon the System Clock\\(cqs rate being correct, means that configuration of "
"the System Clock should be done first."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The System Clock drift is corrected with the B<adjtimex>(8) command\\(cqs "
"B<--tick> and B<--frequency> options. These two work together: tick is the "
"coarse adjustment and frequency is the fine adjustment. (For systems that do "
"not have an B<adjtimex> package, B<ntptime -f> I<ppm> may be used instead.)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Some Linux distributions attempt to automatically calculate the System Clock "
"drift with B<adjtimex>\\(aqs compare operation. Trying to correct one "
"drifting clock by using another drifting clock as a reference is akin to a "
"dog trying to catch its own tail. Success may happen eventually, but great "
"effort and frustration will likely precede it. This automation may yield an "
"improvement over no configuration, but expecting optimum results would be in "
"error. A better choice for manual configuration would be B<adjtimex>\\(aqs "
"B<--log> options."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"It may be more effective to simply track the System Clock drift with "
"B<sntp>, or B<date -Ins> and a precision timepiece, and then calculate the "
"correction manually."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"After setting the tick and frequency values, continue to test and refine the "
"adjustments until the System Clock keeps good time. See B<adjtimex>(2) for "
"more information and the example demonstrating manual drift calculations."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Once the System Clock is ticking smoothly, move on to the Hardware Clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"As a rule, cold drift will work best for most use cases. This should be true "
"even for 24/7 machines whose normal downtime consists of a reboot. In that "
"case the drift factor value makes little difference. But on the rare "
"occasion that the machine is shut down for an extended period, then cold "
"drift should yield better results."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<Steps to calculate cold drift:>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "1"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<Ensure that NTP daemon will not be launched at startup.>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "2"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The I<System Clock> time must be correct at shutdown!"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "3"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Shut down the system."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "4"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Let an extended period pass without changing the Hardware Clock."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "5"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Start the system."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "6"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Immediately use B<hwclock> to set the correct time, adding the B<--update-"
"drift> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Note: if step 6 uses B<--systohc>, then the System Clock must be set "
"correctly (step 6a) just before doing so."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Having B<hwclock> calculate the drift factor is a good starting point, but "
"for optimal results it will likely need to be adjusted by directly editing "
"the I</etc/adjtime> file. Continue to test and refine the drift factor until "
"the Hardware Clock is corrected properly at startup. To check this, first "
"make sure that the System Time is correct before shutdown and then use "
"B<sntp>, or B<date -Ins> and a precision timepiece, immediately after "
"startup."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "LOCAL vs UTC"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Keeping the Hardware Clock in a local timescale causes inconsistent daylight "
"saving time results:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If Linux is running during a daylight saving time change, the time written "
"to the Hardware Clock will be adjusted for the change."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If Linux is NOT running during a daylight saving time change, the time read "
"from the Hardware Clock will NOT be adjusted for the change."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The Hardware Clock on an ISA compatible system keeps only a date and time, "
"it has no concept of timezone nor daylight saving. Therefore, when "
"B<hwclock> is told that it is in local time, it assumes it is in the "
"\\(aqcorrect\\(aq local time and makes no adjustments to the time read from "
"it."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Linux handles daylight saving time changes transparently only when the "
"Hardware Clock is kept in the UTC timescale. Doing so is made easy for "
"system administrators as B<hwclock> uses local time for its output and as "
"the argument to the B<--date> option."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"POSIX systems, like Linux, are designed to have the System Clock operate in "
"the UTC timescale. The Hardware Clock\\(cqs purpose is to initialize the "
"System Clock, so also keeping it in UTC makes sense."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Linux does, however, attempt to accommodate the Hardware Clock being in the "
"local timescale. This is primarily for dual-booting with older versions of "
"MS Windows. From Windows 7 on, the RealTimeIsUniversal registry key is "
"supposed to be working properly so that its Hardware Clock can be kept in "
"UTC."
msgstr ""
#. type: SS
#: debian-bookworm
#, no-wrap
msgid "POSIX vs \\(aqRIGHT\\(aq"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"A discussion on date-time configuration would be incomplete without "
"addressing timezones, this is mostly well covered by B<tzset>(3). One area "
"that seems to have no documentation is the \\(aqright\\(aq directory of the "
"Time Zone Database, sometimes called tz or zoneinfo."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"There are two separate databases in the zoneinfo system, posix and "
"\\(aqright\\(aq. \\(aqRight\\(aq (now named zoneinfo-leaps) includes leap "
"seconds and posix does not. To use the \\(aqright\\(aq database the System "
"Clock must be set to (UTC + leap seconds), which is equivalent to (TAI - "
"10). This allows calculating the exact number of seconds between two dates "
"that cross a leap second epoch. The System Clock is then converted to the "
"correct civil time, including UTC, by using the \\(aqright\\(aq timezone "
"files which subtract the leap seconds. Note: this configuration is "
"considered experimental and is known to have issues."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"To configure a system to use a particular database all of the files located "
"in its directory must be copied to the root of I</usr/share/zoneinfo>. Files "
"are never used directly from the posix or \\(aqright\\(aq subdirectories, e."
"g., TZ=\\(aqI<right/Europe/Dublin>\\(aq. This habit was becoming so common "
"that the upstream zoneinfo project restructured the system\\(cqs file tree "
"by moving the posix and \\(aqright\\(aq subdirectories out of the zoneinfo "
"directory and into sibling directories:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"I</usr/share/zoneinfo>, I</usr/share/zoneinfo-posix>, I</usr/share/zoneinfo-"
"leaps>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Unfortunately, some Linux distributions are changing it back to the old tree "
"structure in their packages. So the problem of system administrators "
"reaching into the \\(aqright\\(aq subdirectory persists. This causes the "
"system timezone to be configured to include leap seconds while the zoneinfo "
"database is still configured to exclude them. Then when an application such "
"as a World Clock needs the South_Pole timezone file; or an email MTA, or "
"B<hwclock> needs the UTC timezone file; they fetch it from the root of I</"
"usr/share/zoneinfo> , because that is what they are supposed to do. Those "
"files exclude leap seconds, but the System Clock now includes them, causing "
"an incorrect time conversion."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Attempting to mix and match files from these separate databases will not "
"work, because they each require the System Clock to use a different "
"timescale. The zoneinfo database must be configured to use either posix or "
"\\(aqright\\(aq, as described above, or by assigning a database path to the "
"I<TZDIR> environment variable."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "EXIT STATUS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "One of the following exit values will be returned:"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<EXIT_SUCCESS> (\\(aq0\\(aq on POSIX systems)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Successful program execution."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<EXIT_FAILURE> (\\(aq1\\(aq on POSIX systems)"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The operation failed or the command syntax was not valid."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "ENVIRONMENT"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<TZ>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If this variable is set its value takes precedence over the system "
"configured timezone."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "B<TZDIR>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"If this variable is set its value takes precedence over the system "
"configured timezone database directory path."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "FILES"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "I</etc/adjtime>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The configuration and state file for B<hwclock>. See also "
"B<adjtime_config>(5)."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "I</etc/localtime>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The system timezone file."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "I</usr/share/zoneinfo/>"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "The system timezone database directory."
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"Device files B<hwclock> may try for Hardware Clock access: I</dev/rtc0> I</"
"dev/rtc> I</dev/misc/rtc> I</dev/efirtc> I</dev/misc/efirtc>"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "SEE ALSO"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"B<date>(1), B<adjtime_config>(5), B<adjtimex>(8), B<gettimeofday>(2), "
"B<settimeofday>(2), B<crontab>(1p), B<tzset>(3)"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "AUTHORS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "Written by"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"September 1996, based on work done on the B<clock>(8) program by Charles "
"Hedrick, Rob Hooft, and Harald Koenig. See the source code for complete "
"history and credits."
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "REPORTING BUGS"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid "For bug reports, use the issue tracker at"
msgstr ""
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "AVAILABILITY"
msgstr ""
#. type: Plain text
#: debian-bookworm
msgid ""
"The B<hwclock> command is part of the util-linux package which can be "
"downloaded from"
msgstr ""
|