chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:12:17 +08:00
commit cf8edb9f21
44281 changed files with 1655134 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
---- Changes since 1.140 ----
A cron job can now be created to sync the system time against an NTP or Unix time server.
---- Changes since 1.150 ----
Multiple time servers can now be entered to sync with.
---- Changes since 1.160 ----
On Linux, FreeBSD and Solaris systems, the timezone can now be edited.
---- Changes since 1.200 ----
Command-line options for the hwclock command can now be specified on the Module Config page.
Added an API for getting and setting the system and hardware times, for calling by other modules.
---- Changes since 1.210 ----
When the hardware or system time is not editable due to module access control restrictions, the times are now displayed (but cannot be changed).
---- Changes since 1.340 ----
Added check for empty timeservers field.
---- Changes since 1.380 ----
Display a more complete message if unable to get the hardware time from hwclock.
---- Changes since 1.390 ----
Changed the main page to use tabs to split up the system time, timezone and sync sections.
Re-wrote all user interface code to use Webmin's new UI library.
---- Changes since 1.420 ----
The default NTP sync time is now set randomly instead of at midnight, and any existing automatic sync done at midnight is changed to a random time. This reduces load on public NTP servers.
---- Changes since 1.480 ----
Support for setting the hardware clock is now detected automatically on Linux.
---- Changes since 1.510 ----
Switched background time syncing to use the new Webmin Cron service.
---- Changes since 1.580 ----
Added an option to have the time synced when Webmin starts at system boot.
+29
View File
@@ -0,0 +1,29 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require 'time-lib.pl';
our (%text);
sub acl_security_form
{
my ($o) = @_;
print &ui_table_row($text{'acl_sys'},
&ui_yesno_radio("sysdate", $o->{'sysdate'}, 0, 1));
print &ui_table_row($text{'acl_hw'},
&ui_yesno_radio("hwdate", $o->{'hwdate'}, 0, 1));
print &ui_table_row($text{'acl_timezone'},
&ui_yesno_radio("timezone", $o->{'timezone'}));
print &ui_table_row($text{'acl_ntp'},
&ui_yesno_radio("ntp", $o->{'ntp'}));
}
sub acl_security_save
{
my ($o, $in) = @_;
$o->{'sysdate'} = $in->{'sysdate'};
$o->{'hwdate'} = $in->{'hwdate'};
$o->{'timezone'} = $in->{'timezone'};
$o->{'ntp'} = $in->{'ntp'};
}
Executable
+108
View File
@@ -0,0 +1,108 @@
#!/usr/local/bin/perl
require "./time-lib.pl";
use Time::Local;
&ReadParse();
if (!$in{'action'}) {
# user probably hit return in the time server field
$in{'action'} = $text{'index_sync'};
}
$mode = "time";
if ($in{'action'} eq $text{'action_sync'}) {
# Set system time to hardware time
&error( $text{ 'acl_nosys' } ) if( $access{ 'sysdate' } );
$err = &set_system_time_to_hardware_time();
&error( &text( 'error_sync', &html_escape($err) ) ) if ($err);
&webmin_log("sync");
} elsif ($in{'action'} eq $text{'action_sync_s'}) {
# Set hardware time to system time
&error( $text{ 'acl_nohw' } ) if( $access{ 'hwdate' } && $access{'sysdate'} );
$err = &set_hardware_time_to_system_time();
&error( &text( 'error_sync', &html_escape($err) ) ) if ($err);
&webmin_log("sync_s");
} elsif($in{'action'} eq $text{'action_apply'} || $in{'mode'} eq 'sysdate' ) {
# Setting the system time
&error( $text{ 'acl_nosys' } ) if( $access{ 'sysdate' } );
$err = &set_system_time($in{ 'second' }, $in{'minute'}, $in{'hour'},
$in{'date'}, $in{'month'}-1, $in{'year'}-1900);
&error(&html_escape($err)) if ($err);
&webmin_log("set", "date", time(), \%in);
} elsif ($in{'action'} eq $text{'action_save'} || $in{'mode'} eq 'hwdate' ) {
# Setting the hardware time
&error( $text{ 'acl_nohw' } ) if( $access{ 'hwdate' } );
$err = &set_hardware_time($in{ 'second' }, $in{'minute'}, $in{'hour'},
$in{'date'}, $in{'month'}-1, $in{'year'}-1900);
&error( &text( 'error_hw', &html_escape($err) ) ) if ($err);
local $hwtime = timelocal($in{'second'}, $in{'minute'}, $in{'hour'},
$in{'date'}, $in{'month'}-1, $in{'year'} < 200 ?
$in{'year'} : $in{'year'}-1900);
&webmin_log("set", "hwclock", $hwtime, \%in);
} elsif ($in{'action'} eq $text{'index_sync'} || $in{'mode'} eq 'ntp') {
# Sync with a time server
$access{'ntp'} || &error($text{'acl_nontp'});
# Save service status
if (defined($in{'sync_service_name'}) &&
defined($in{'sync_service_status'})) {
my $service_name = $in{'sync_service_name'};
if ($service_name !~ /^(chronyd|chrony|systemd-timesyncd)$/) {
&error(&text('error_serviceunknown', &html_escape($service_name)));
}
my $service_status = int($in{'sync_service_status'});
&foreign_require('init');
if ($service_status == 2) {
# Enable service on boot
&init::enable_at_boot($service_name);
# Start service
&init::restart_action($service_name);
}
if ($service_status == 1) {
# Disable service on boot
&init::disable_at_boot($service_name);
# Start service
&init::restart_action($service_name);
}
if ($service_status == 0) {
# Disable service on boot
&init::disable_at_boot($service_name);
# Stop service
&init::stop_action($service_name);
}
}
# Run sync
$in{'timeserver'} =~ /\S/ || &error($text{'error_etimeserver'});
$err = &sync_time($in{'timeserver'}, $in{'hardware'});
&error("<pre>".&html_escape($err)."</pre>") if ($err);
# Save settings in module config
&lock_file($module_config_file);
$config{'timeserver'} = $in{'timeserver'};
$config{'timeserver_hardware'} = $in{'hardware'};
&save_module_config();
&unlock_file($module_config_file);
# Create, update or delete the syncing cron job
$job = &find_webmin_cron_job();
if ($in{'sched'} || $in{'boot'}) {
$job ||= { 'module' => $module_name,
'func' => 'sync_time_cron' };
$job->{'disabled'} = $in{'sched'} ? 0 : 1;
$job->{'boot'} = $in{'boot'};
&webmincron::parse_times_input($job, \%in);
&webmincron::create_webmin_cron($job);
}
elsif ($job) {
&webmincron::delete_webmin_cron($job);
}
&webmin_log("remote", $in{'action'} eq $text{'action_timeserver_sys'} ? "date" : "hwclock", $rawtime, \%in);
$mode = "sync";
}
&redirect("index.cgi?mode=$mode");
+50
View File
@@ -0,0 +1,50 @@
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
do 'time-lib.pl';
our ($module_config_file);
# backup_config_files()
# Returns files and directories that can be backed up
sub backup_config_files
{
my @rv;
if (defined(&timezone_files)) {
push(@rv, &timezone_files());
}
push(@rv, $module_config_file);
return @rv;
}
# pre_backup(&files)
# Called before the files are actually read
sub pre_backup
{
return undef;
}
# post_backup(&files)
# Called after the files are actually read
sub post_backup
{
return undef;
}
# pre_restore(&files)
# Called before the files are restored from a backup
sub pre_restore
{
return undef;
}
# post_restore(&files)
# Called after the files are restored from a backup
sub post_restore
{
return undef;
}
1;
+6
View File
@@ -0,0 +1,6 @@
lease=5
seconds=1
timeserver_hardware=1
zone_style=linux
ntp_only=1
timeserver=0.pool.ntp.org
+6
View File
@@ -0,0 +1,6 @@
lease=5
seconds=2
timeserver_hardware=1
zone_style=freebsd
ntp_only=1
timeserver=0.pool.ntp.org
+5
View File
@@ -0,0 +1,5 @@
lease=5
seconds=0
timeserver_hardware=1
ntp_only=1
timeserver=0.pool.ntp.org
+5
View File
@@ -0,0 +1,5 @@
lease=5
seconds=1
timeserver_hardware=1
ntp_only=1
timeserver=0.pool.ntp.org
+5
View File
@@ -0,0 +1,5 @@
lease=5
seconds=2
timeserver_hardware=1
ntp_only=1
timeserver=0.pool.ntp.org
+5
View File
@@ -0,0 +1,5 @@
lease=5
seconds=2
timeserver_hardware=1
ntp_only=1
timeserver=0.pool.ntp.org
+5
View File
@@ -0,0 +1,5 @@
lease=5
seconds=0
timeserver_hardware=1
ntp_only=1
timeserver=0.pool.ntp.org
+7
View File
@@ -0,0 +1,7 @@
lease=5
seconds=1
timeserver_hardware=1
zone_style=linux
hwclock_flags=sysconfig
ntp_only=1
timeserver=0.pool.ntp.org
+6
View File
@@ -0,0 +1,6 @@
lease=5
seconds=1
timeserver_hardware=1
zone_style=solaris
ntp_only=1
timeserver=0.pool.ntp.org
+8
View File
@@ -0,0 +1,8 @@
line1=Configurable options,11
lease=Acceptable number seconds of delay between system time and hardware time,0
timeserver=Default time server,3,None
ntp_only=Only use NTP for time synchronization?,1,1-Yes,0-No
line2=System configuration,11
seconds=System time setting format,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Timezone configuration method,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Not supported on this OS&gt;
hwclock_flags=Command-line flags for hwclock,10,-None,sysconfig-From /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Opcions configurables,11
lease=Nombre de segons de retard acceptables entre l'hora del sistema i l'hora del maquinari,0
timeserver=Servidor horari per defecte,3,Cap
ntp_only=Utilitza NTP només per a la sincronització horària,1,1-Sí,0-No
line2=Configuració del sistema,11
seconds=Format de l'hora del sistema,1,1-MMDDHHMMAAAA.SS,0-MMDDHHMMAA,2-AAAAMMDDHHMM.SS
zone_style=Mètode de configuració de zones horàries,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;No suportat en aquest SO&gt;
hwclock_flags=Arguments de la línia d'ordres de <tt>hwclock</tt>,10,-Cap,sysconfig-De /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Možnosti konfigurace,11
lease=Akceptovatelná prodleva (ve vteřinách) mezi systémovým a harwarovým časem,0
timeserver=Výchozí čas serveru,3,Nic
ntp_only=Použít pouze NTP pro časovou synchronizaci?,1,1-Ano,0-Ne
line2=Konfigurace systému,11
seconds=Formát nastavení systémového času,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Metoda konfigurace časové zóny,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Není v tomto OS podporován&gt;
hwclock_flags=Signály příkazového řádku pro hw hodiny,10,-Nic,sysconfig-Z /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Konfigurierbare Optionen,11
lease=Akzeptabler Unterschied in Sekunden zwischen System&#45; und Hardwarezeit,0
timeserver=Standard Zeit&#45;Server,3,Keiner
ntp_only=Nur NTP für Zeitsynchronisation benutzen?,1,1-Ja,0-Nein
line2=Systemkonfiguration,11
seconds=Format der Systemzeit,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Zeitzonen Konfigurationsmethode,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Nicht auf diesem System unterstützt&gt;
hwclock_flags=Kommandozeilenoptionen für hwclock,10,-Kein,sysconfig-Aus /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Opciones Configurables,11
lease=Número de segundos de retraso aceptables entre la hora del sistema y la del hardware,0
timeserver=Servidor horario por defecto,3,Ninguno
ntp_only=¿Usar sólo NTP para sincronización horaria?,1,1-,0-No
line2=Configuracion del sistema,11
seconds=Formato de ajuste de hora de sistema,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Método de configuración de zona horaria,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;No soportado en este OS&gt;
hwclock_flags=Flags de linea de comandos para hwclock,10,-Ninguno,sysconfig-Desde /etc/sysconfig/clock
+7
View File
@@ -0,0 +1,7 @@
lease=تعداد ثانيه‌هاي قابل قبول براي تاخير بين زمان سيتم و زمان سخت افزار،0
timeserver=کارساز زمان پيش‌گزيده،3،هيچ
ntp_only=آيا فقط از NTPبراي همگام سازي زمان استفاده شود؟،1،1-بله،0-خير
line2=پيکربندي سيستم،11
seconds=قالب تنظيمات زمان سيستم،1،1-MMDDHHMMYYYY.SS،0-MMDDHHMMYY،2-YYYYMMDDHHMM.SS
zone_style=روش پيکربندي زمان منطقه،4،linux-Linux،freebsd-FreeBSD،solaris-Solaris،-&lt;برروي اين OS> پشتيباني نمي‌شود;
hwclock_flags=خط فرمان نشانها براي، ساعت سخت افزاري،10،-هيچ،از رويsysconfig-From /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Options Configurables,11
lease=Nombre de secondes acceptable entre l'heure système et l'heure matérielle,0
timeserver=Serveur de temps par defaut,3,Aucun
ntp_only=N'utiliser que le protocole NTP lors de la synchronisation de l'heure et de la date ?
line2=Configuration du systeme,11
seconds=Format de parametrage du temps System,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Méthode de configuration du fuseau horaire,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Non supporté par ce systèmeOS&gt;
hwclock_flags=Indicateurs de ligne de commande pour hwclock,10,-Aucun,sysconfig-De /etc/sysconfig/clock
View File
+8
View File
@@ -0,0 +1,8 @@
line1=Konfigurálható beállítások,11
lease=Elfogadható másodperc különbség a rendszeridő és a hardveridő között,0
timeserver=alapértelmezett időszerver,3,Nincs
ntp_only=Csak NTP protokoll használata időszinkronizáláshoz?,1,1-Igen,0-Nem
line2=Rendszer konfiguráció
seconds=Rendszeridő formátuma,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Időzóna beállítási eljárás:,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Nem támogatja ez az OS&gt;
hwclock_flags=Parancs-sori zászló a hwclock -hoz,10,-nincs,sysconfig-A /etc/sysconfig/clock -ról
+8
View File
@@ -0,0 +1,8 @@
line1=Opzioni configurabili,11
lease=Numero di secondi di ritardo tra l'ora di sistema e l'ora hardware considerati accettabili:,0
timeserver=Time server di default,3,Nessuno
ntp_only=Usare solo NTP per la sincronizzazione dell'ora?,1,1-Si,0-No
line2=Configurazione di sistema,11
seconds=Formato dell'ora di sistema,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Metodo di configurazione del fuso orario,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Non supportato su questo sistema&gt;
hwclock_flags=Flag a linea di comando per l'orologio hardware,10,-Nessuno,sysconfig-Da /etc/sysconfig/clock
+5
View File
@@ -0,0 +1,5 @@
line1=設定可能なオプション,11
lease=システム時計とハードウェア時計との許容誤差,0
timeserver=デフォルトのタイムサーバー,3,なし
line2=システム設定,11
seconds=システムタイムの設定形式,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY
+8
View File
@@ -0,0 +1,8 @@
line1=설정가능한 옵션,11
lease=시스템 시간과 하드웨어 시간 사이의 허용할 시간차(초),0
timeserver=기본 타임 서버,3,없음
ntp_only=시간 동기화에 NTP 만 사용하겠습니까?,1,1-예,0-아니오
line2=시스템 설정,11
seconds=시스템 시간 설정 형식,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=시간대 설정 방법4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;이 OS 에서 지원하지 않음&gt;
hwclock_flags=hwclock 에 사용할 명령행 옵션,10,-없음,syscnofig-/etc/sysconfig/clock 에서
+8
View File
@@ -0,0 +1,8 @@
line1=Pilihan boleh konfigurasi,11
lease=Bilangan saat lengah yang boleh diterima antara masa sistem dan masa perkakasan,0
timeserver=Pelayan masa default,3,Tiada
ntp_only=Hanya gunakan NTP untuk penyegerakan masa?,1,1-Ya,0-Tidak
line2=Konfigurasi sistem,11
seconds=Format tetapan masa sistem,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Kaedah konfigurasi zon waktu,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Tidak disokong oleh sistem operasi ini&gt;
hwclock_flags=Baris arahan serasi untuk hwclock,10,-Tiada,sysconfig-Dari /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Configureerbare opties,11
lease=Geaccepteerd aantal seconden vertraging tussen systeemtijd en hardware-tijd,0
timeserver=Standaard tijd server,3,Geen
ntp_only=Gebruik alleen NTP voor tijd synchronisatie?,1,1-Ja,0-Nee
line2=Systeem configuratie,11
seconds=Systeem tijd formaat,1,1-MMDDUUMMJJJJ.SS,0-MMDDUUMMJJ,2-JJJJMMDDUUMM.SS
zone_style=Tijdzone configuratie methoden,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Niet ondersteund op dit OS&gt;
hwclock_flags=Opdracht regel flags voor hwclock,10,-Geen,sysconfig-Van /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Konfigurerbare innstillinger,11
lease=Akseptabelt antall sekunders avvik mellom systemtid og maskinvaretid,0
timeserver=Standard tids-tjener,3,Ingen
ntp_only=Bruk bare NTP for synkronisering av tid?,1,1-Ja,0-Nei
line2=System konfigurasjon,11
seconds=Format for setting av systemtid,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Metode for tidssone konfigurering,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Støttes ikke på dette OSet&gt;
hwclock_flags=Kommando-linje flagg for hwclock,10,-Ingen,sysconfig-Fra /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Konfigurowalne opcje,11
lease=Dozwolona liczba sekund różnicy pomiędzy czasem systemowym i&nbsp;sprzętowym,0
timeserver=Domyślny serwer czasu,3,Brak
ntp_only=Użyć tylko NTP do synchronizacji czasu?,1,1-Tak,0-Nie
line2=Konfiguracja systemu,11
seconds=Format dla ustawiania czasu systemowego,1,1-MMDDGGMMRRRR.SS,0-MMDDGGMMRR,2-RRRRMMDDGGMM.SS
zone_style=Metoda konfiguracji strefy czasowej,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Nie obsługiwany na tym systemie operacyjnym&gt;
hwclock_flags=Flagi linii poleceń dla hwclock,10,-Brak,sysconfig-Z /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=OPções configuráveis,11
lease=Tempo aceitável de atraso entre hora de sistema e hora do hardware&#44; em segundos,3,Nenhum
timeserver=Servidor de horário padrão,3,Nenhum
ntp_only=Usar só NTP para sincronização da hora?,1,1-Sim,0-Não
line2=Configuração do sistema,11
seconds=Formato da configuração de hora do sistema,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
zone_style=Método de configuração de fuso-horário,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Não suportado neste sistema operacional&gt;
hwclock_flags=Flags de linhas de comando para hwclock,10,-Nenhuma,sysconfig-Importar de /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Настраиваемые параметры,11
lease=Допустимое расхождение между системным и аппаратным временем в секундах,0
timeserver=Сервер времени по умолчанию,3,Нет
ntp_only=Для синхронизации времени использовать только NTP?,1,1-Да,0-Нет
line2=Системные параметры,11
seconds=Формат системного времени,1,1-ММДДЧЧММГГГГ.СС,0-ММДДЧЧММГГ,2-ГГГГММДДЧЧММ.СС
zone_style=Способ установки часового пояса,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Не поддерживается на этой ОС&gt;
hwclock_flags=Параметры командной строки для аппаратных часов,10,-Нет,sysconfig-Из файла /etc/sysconfig/clock
+8
View File
@@ -0,0 +1,8 @@
line1=Nastaviteľné voľby,11
lease=Akceptovateľný počet sekúnd rozdielu medzi systémovým časom a hardvérovým časom,0
timeserver=Štandardný časový server,3,Žiadny
ntp_only=Používať len NTP pre synchronizáciu času?,1,1-Áno,0-Nie
line2=Systémová konfigurácia,11
seconds=Formát systémového času ,1,1-MMDDHHMMRRRR.SS,0-MMDDHHMMRR,2-RRRRMMDDHHMM.SS
zone_style=Metóda konfigurácie časovej zóny,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Nepodporované na tomto OS&gt;
hwclock_flags=Parametre pre hwclock,10,Žiadne,sysconfig-z /etc/sysconfig/clock
+3
View File
@@ -0,0 +1,3 @@
lease=Accepterad fördröjning mellan systemtid och hårdvarutid (sekunder),0
timeserver=Standardtidserver,3,Ingen
seconds=Systemtidsformat,1,1-MMDDTTMMÅÅÅÅ.SS,0-MMDDTTMMÅÅ
+6
View File
@@ -0,0 +1,6 @@
line1=Yapılandırılabilir seçenekler,11
lease=Sistem ve donanım saatleri arasındaki kabul edilebilir fark(saniye),0
timeserver=Öntanımlı zaman sunucusu,3,Hiçbiri
line2=Sistem yapılandırması,11
seconds=Sistem zaman ayarı biçimi,1,1-AAGGSSDDYYYY.SS,0-AAGGSSDDYY,2-YYYYAAGGSSDD.SS
zone_style=Zaman dilimi yapılandırma metodu,4,linux-Linux,freebsd-FreeBSD,solaris-Solaris,-&lt;Bu işletim sistemi desteklenmiyor&gt;
+5
View File
@@ -0,0 +1,5 @@
line1=Параметри&#44; що настроюються,11
lease=Припустима затримка в секундах між системним і апаратним часом,0
timeserver=Сервер часу за замовчуванням,3,Немає
line2=Системні параметри,11
seconds=Формат завдання системного часу,1,1-ММДДЧЧММГГГГ.СС,0-ММДДЧЧММГГ,2-ГГГГММДДЧЧММ.СС
+2
View File
@@ -0,0 +1,2 @@
lease=允许系统时间和硬件时间延迟秒数,0
timeserver=默认的时间服务器,3,无
+5
View File
@@ -0,0 +1,5 @@
line1=組態選項,11
lease=所能接受的系統時間與硬體時間延遲秒數,0
timeserver=預設時間伺服器,3,無
line2=系統組態,11
seconds=系統時間格式,1,1-MMDDHHMMYYYY.SS,0-MMDDHHMMYY,2-YYYYMMDDHHMM.SS
+5
View File
@@ -0,0 +1,5 @@
noconfig=0
sysdate=0
hwdate=0
timezone=1
ntp=1
+68
View File
@@ -0,0 +1,68 @@
# Functions for getting and setting the timezone on Linux
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our $timezones_file = "/usr/share/zoneinfo/zone.tab";
our $currentzone_link = "/etc/localtime";
our $timezones_dir = "/usr/share/zoneinfo";
# list_timezones()
sub list_timezones
{
my @rv;
my $fh = "ZONE";
&open_readfile($fh, $timezones_file) || return ( );
while(<$fh>) {
s/\r|\n//g;
s/^\s*#.*$//;
if (/^(\S+)\s+(\S+)\s+(\S+)\s+(\S.*)/) {
push(@rv, [ $3, $4 ]);
}
elsif (/^(\S+)\s+(\S+)\s+(\S+)/) {
push(@rv, [ $3, undef ]);
}
}
close($fh);
return sort { $a->[0] cmp $b->[0] } @rv;
}
# get_current_timezone()
sub get_current_timezone
{
my $lnk = readlink(&translate_filename($currentzone_link));
if ($lnk) {
# Easy - it a link
$lnk =~ s/$timezones_dir\///;
return $lnk;
}
else {
# Need to compare with all timezone files!
return &find_same_zone($currentzone_link);
}
}
# set_current_timezone(zone)
sub set_current_timezone
{
my ($zone) = @_;
&lock_file($currentzone_link);
unlink(&translate_filename($currentzone_link));
symlink(&translate_filename("$timezones_dir/$zone"),
&translate_filename($currentzone_link));
&unlock_file($currentzone_link);
}
sub os_has_timezones
{
return -r $timezones_file;
}
sub timezone_files
{
return ( $currentzone_link );
}
1;
+1
View File
@@ -0,0 +1 @@
<header> وقت الأجهزة </header> ساعة الوقت الحقيقي <hr>
+1
View File
@@ -0,0 +1 @@
<header> Хардуерно време </header> Часовник в реално време <hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hora del Maquinari</header>
Rellotge de Temps Real
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Hardwarový čas </header> Hodiny reálného času <hr>
+1
View File
@@ -0,0 +1 @@
<header> Hardwaretid </header> Realtid ur <hr>
+1
View File
@@ -0,0 +1 @@
<header>Hardware-Zeit</header>Echtzeituhr<hr>
+1
View File
@@ -0,0 +1 @@
<header> Ώρα υλικού </header> Ρολόι πραγματικού χρόνου <hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hora de Hardware</header>
Reloj de Tiempo Real
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Hardwarearen ordua </header> Denbora errealeko erlojua <hr>
+5
View File
@@ -0,0 +1,5 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body dir="rtl">
<b>زمان سخت افزار</b><p>زمان&nbsp; <span lang="fa">زمان واقعی</span></p>
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Laitteistoaika </header> Reaaliaikainen kello <hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Horloge Matérielle</header>
Horloge située sur la carte mère, cette horloge maintient l'heure de l'ordinateur lorsqu'il est hors-tension.
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardwersko Vrijeme</header>
Real Time Clock
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardware Time</header>
Real Time Clock
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardware idő</header>
Valós idejű óra
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardware Ora</header>
Ora hardware
<hr>
+1
View File
@@ -0,0 +1 @@
<header>ハードウェア時間</header>リアルタイムクロック<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>하드웨어 시간</header>
Real Time Clock
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Masa Perkakasan </header> Jam Masa Sebenar <hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardware Tijd</header>
Echte Tijd Klok
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Maskinvaretid </header> Klokke i sanntid <hr>
+4
View File
@@ -0,0 +1,4 @@
<header>Czas sprzętowy</header>
Zegar czasu rzeczywistego
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Tempo de hardware </header> Relógio de tempo real <hr>
+1
View File
@@ -0,0 +1 @@
<header> Tempo de hardware </header> Relógio de tempo real <hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Время Часов</header>
Время аппаратных часов встроенных в компъютер
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hardvérový čas</header>
RTC
<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>Hårdvarutid</header>
Klocka med reell tid
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Donanım Zamanı </header> Gerçek Zaman Saati <hr>
+1
View File
@@ -0,0 +1 @@
<header> Апаратний час </header> Годинник у режимі реального часу <hr>
+1
View File
@@ -0,0 +1 @@
<header>硬件时间</header>实时时钟<hr>
+3
View File
@@ -0,0 +1,3 @@
<header>硬體時間</header>
實體時間
<hr>
+1
View File
@@ -0,0 +1 @@
<header> زمن </header> أداة التهيئة لتعيين <b>وقت النظام ووقت</b> <b>الجهاز</b> المضمّن في ساعة الوقت الحقيقي <p style=";text-align:right;direction:rtl"> كما يمكن استخدامه لمزامنة ساعة النظام مع ساعة الجهاز. <hr>
+1
View File
@@ -0,0 +1 @@
<header> път </header> Инструмент за конфигуриране, за да зададете <b>системното време</b> и <b>хардуерното време,</b> вградено в часовника в реално време <p> Също така може да се използва за синхронизиране на системния часовник с хардуерния часовник. <hr>
+9
View File
@@ -0,0 +1,9 @@
<header>Hora</header>
Eina de configuració per establir l'<b>hora del sistema</b> i l'<b>hora
del maquinari</b> del rellotge de temps real<p>
També és pot utilitzar per sincronitzar el rellotge del sistema amb el
rellotge del maquinari.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Čas </header> Konfigurační nástroj pro nastavení <b>systémového času</b> a <b>hardwarového času</b> vestavěného v reálném čase <p> Může být také použit k synchronizaci systémových hodin s hardwarovými hodinami. <hr>
+1
View File
@@ -0,0 +1 @@
<header> Tid </header> Konfigurationsværktøj til at indstille <b>systemtid</b> og <b>hardwaretid, der er</b> indbygget i realtiduret <p> Det kan også bruges til at synkronisere systemuret med hardwareuret. <hr>
+1
View File
@@ -0,0 +1 @@
<header>Zeit</header>Konfigurationstool zur Einstellung der <b>Systemzeit</b> und der <b>Hardware-Zeit</b> in der Echtzeituhr<p>Es kann auch verwendet werden, um die Systemuhr mit der Hardwareuhr zu synchronisieren.<hr>
+1
View File
@@ -0,0 +1 @@
<header> χρόνος </header> Εργαλείο διαμόρφωσης για να ορίσετε την <b>ώρα</b> του <b>συστήματος</b> και τον <b>χρόνο υλικού που είναι</b> ενσωματωμένος στο ρολόι σε πραγματικό χρόνο <p> Επίσης, μπορεί να χρησιμοποιηθεί για συγχρονισμό του ρολογιού συστήματος με το ρολόι υλικού. <hr>
+7
View File
@@ -0,0 +1,7 @@
<header>Hora</header>
Herramienta de Configuración para poner la <b>hora del sistema</b> y la
<b>hora de hardware</b> que hay en el reloj de tiempo real<p>
También se puede utilizar para sincronizar el reloj del sistema con el de
hardware.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Ordua </header> Konfigurazio tresna <b>denbora</b> errealean erlojuan eraikitako <b>sistemaren denbora</b> eta <b>hardware denbora ezartzeko</b> <p> Gainera, sistemaren erlojua hardware-erlojuarekin sinkronizatzeko erabil daiteke. <hr>
+8
View File
@@ -0,0 +1,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body dir="rtl">
<p>ابزار <b>پیکربندی زمان</b> برای تنظیم <b>زمان سیستم</b> و <b>زمان سخت افزار</b>
بر اساس زمان
واقعی پیش بینی شده است.</p>
<p>همچنین می تواند برای همگام سازی زمان سیستم با زمان سخت افزار استفاده شود. </p>
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Aika </header> Konfigurointityökalu asettaa <b>järjestelmäajan</b> ja <b>reaaliaikakelloon</b> rakennetun <b>laitteistoajan</b> <p> Sitä voidaan myös käyttää synkronoimaan järjestelmäkello laitteistokellon kanssa. <hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Temps</header>
Outil qui configure l'<b>heure système</b> et l'<b>heure matériel</b> de l'horloge à temps réel de la carte-mère<p>
Peut aussi être utilisé pour synchroniser les deux temps.
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Vrijeme</header>
Konfiguracijski alat za namještanje <b>systemskog vremena</b> i <b>hardwarskog vremena</b> koji su u RTC (real time clock)<p>
Tako&#273;er, može se upotrijebiti zta sinhronizaciju sistemskog i hardwerskog vremena.
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Time</header>
Configuration Tool to set the <b>system time</b> and the <b>hardware time</b> built in the real time clock<p>
Also, it can be used to synchronize the system clock to the hardware clock.
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Idő</header>
Egy konfigurációs segédeszköz, mellyel beállítható a <b>rendszeridő</b> és a <b>hardware idő</b>, mely a valós idejű órába van beépítvek<p>
A modul a rendszeróra és a hardware óra szinkronizálására is használható.
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Ora di sistema</header>
Tool di configurazione per impostare <b>l'ora di sistema</b> e <b>l'ora hardware</b><p>
Può essere usato anche per sincronizzare l'ora di sistema con l'ora hardware.
<hr>
+1
View File
@@ -0,0 +1 @@
<header>時間</header>リアルタイムクロックに組み込まれた<b>システム時刻</b><b>ハードウェア時刻</b>を設定する構成ツール<p>また、システムクロックをハードウェアクロックに同期させるためにも使用できます。 <hr>
+5
View File
@@ -0,0 +1,5 @@
<header>시간</header>
내장된 real time clock을 이용하여, <b>시스템 시간</b><b>하드웨어 시간</b>을 설정하기 위한 설정 도구<p>
또한,하드웨어 시간과 시스템 시간을 동기화 하기 위하여 사용할 수도 있습니다.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Masa </header> Alat Konfigurasi untuk menetapkan <b>masa sistem</b> dan <b>masa perkakasan yang</b> dibina dalam jam masa nyata <p> Juga, ia dapat digunakan untuk menyegerakkan jam sistem ke jam perkakasan. <hr>
+7
View File
@@ -0,0 +1,7 @@
<header>Tijd</header>
Configuratie gereedschap om de <b>systeemtijd</b> en de <b>hardware tijd</b> in te stellen
met de ingebouwde echte tijd klok.
U kunt hiermee ook de systeem klok synchroniseren met de hardware klok.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Tid </header> Konfigurasjonsverktøy for å stille inn <b>systemtid</b> og <b>maskinvaretid som er</b> innebygd i sanntidsklokken <p> Den kan også brukes til å synkronisere systemklokken med maskinvareklokken. <hr>
+9
View File
@@ -0,0 +1,9 @@
<header>Czas</header>
Narzędzie konfiguracyjne do ustawiania <b>czasu systemowego</b> oraz
<b>czasu sprzętowego</b> na wbudowanym zegarze czasu rzeczywistego. <p>
Może być również wykorzystane do synchronicacji zegara systemowego
z&nbsp;zegarem sprzętowym.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> Tempo </header> Ferramenta de configuração para definir a <b>hora</b> do <b>sistema</b> e a <b>hora</b> do <b>hardware</b> incorporadas no relógio de tempo real <p> Além disso, ele pode ser usado para sincronizar o relógio do sistema com o relógio do hardware. <hr>
+1
View File
@@ -0,0 +1 @@
<header> Tempo </header> Ferramenta de configuração para definir a <b>hora</b> do <b>sistema</b> e a <b>hora</b> do <b>hardware</b> incorporadas no relógio de tempo real <p> Além disso, ele pode ser usado para sincronizar o relógio do sistema com o relógio do hardware. <hr>
+7
View File
@@ -0,0 +1,7 @@
<header>Время</header>
Конфигурационное средство для установки <b>системного времени</b> и <b>времени встроенных аппаратных часов</b>.
Может использоваться для синхронизации системного времени и времени часов, а также для для синхронизации системного времени или времени часов с сервером времени.
<p>
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Čas</header>
Konfiguračný nástroj pre nastavenie <b>systémového času</b> a <b>hardvérového času</b><p>
Taktiež je možné zosynchronizovať systémové a hardvérové hodiny.
<hr>
+5
View File
@@ -0,0 +1,5 @@
<header>Tid</header>
Inställningsverktyg för att ställa <b>systemtiden</b> och <b>hårdvarutiden</b> som är inbyggd i klockan med reell tid.
<p>Det kan också användas för att synkronisera systemklockan och hårdvaruklockan.
<hr>
+1
View File
@@ -0,0 +1 @@
<header> zaman </header> <b>Sistem saatini</b> ve gerçek zamanlı saatte oluşturulan <b>donanım saatini</b> ayarlamak için Konfigürasyon Aracı <p> Ayrıca, sistem saatini donanım saatiyle senkronize etmek için de kullanılabilir. <hr>
+1
View File
@@ -0,0 +1 @@
<header> Час </header> Інструмент конфігурації для встановлення <b>системного часу</b> та <b>апаратного часу,</b> вбудованого в годинник реального часу <p> Також його можна використовувати для синхронізації системного годинника з апаратним годинником. <hr>
+1
View File
@@ -0,0 +1 @@
<header>时间</header>配置工具可设置<b>系统时间</b>和实时时钟中内置的<b>硬件时间</b> <p>同样,它可以用于将系统时钟与硬件时钟同步。 <hr>

Some files were not shown because too many files have changed in this diff Show More