Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Запрос информации о настройках времени в системе содержит следующие поля:

  • querytype — тип запроса: gettimeconf — информации о настройках времени в системе;

  • k — идентификатор сессии;

...

Request information about time settings

The query for information about the time settings in the system contains the following fields:

  • querytype - request type: gettimeconf - information about the time settings in the system;
  • k - session identifier;

Example of an answer to a request for information about the system:

Code Block
languagexml
<timeconf time="1428383230" gmtofs="4:00" name="LOC" dst="enable" ins="Mar" ons="Sun&gt;=9" ats="2:00" inw="Oct" onw="Sun&gt;=9" atw="3:00" ntp1="europe.pool.ntp.org" ntp2="" ntp_period="3600" />

Установка настроек времени

...

Setting the time settings

Configuration of the time settings in the system contains the following fields:

  • querytype - тип запросаtype of request: settimeconf - уcтановка настроек времени в системеsetting the time settings in the system;
  • k — идентификатор сессии- session identifier;
  • noreboot - не используетсяnot used;
  • time - текущее время в формате UTS current time in UTS format (Unix time stamp);
  • gmtofs - смещение времени относительно GMT в виде чч:ммtime offset relative to GMT as hh: mm;
  • name - краткое имя a short name (3 буквыletters);
  • dst - функция автоматического перевода зимнего и летнего времениfunction of automatic translation of winter and summer time (Daylight saving time), возможные значенияpossible values:
    • "enable" - включенаenabled;
    • "disable" - выключенаoff
  • ins - месяц перевода на летнее время (только для - the month of daylight saving time (only for dst="enable"), в виде трехбуквенной аббревиатуры in the form of a three-letter abbreviation;
  • ons - день перевода на летнее время (только для - the day of translation to a summer time (only for dst="enable"), возможные формы записиpossible forms of recording:
    • 5 - пятый день месяца- the fifth day of the month;
    • lastSun - последнее воскресенье месяца- the last Sunday of the month;
    • lastMon - последний понедельник месяца- the last Monday of the month;
    • Sun>=8 - первое воскресенье после восьмого числа включительно- the first Sunday after the eighth day inclusive;
    • Sun<=25 - последнее воскресенье перед 25-м числом включительно;
    ats - час перевода на летнее время (только для
    • - the last Sunday before the 25th day inclusive;
  • ats - hour of translation to a summer time (only for dst="enable"), в виде чч:мм; as hh: mm;
  • inw - месяц перевода на зимнее время (только для - the month of translation to a wintertime (only for dst="enable"), возможные формы записи: см. possible forms of writing: see ins;
  • onw - день перевода на зимнее время (только для - daytranslation to a winter time (only for dst="enable"), возможные формы записи: см. possible forms of recording: see ons;
  • atw - час перевода на зимнее время (только для - the hour of translation to the winter time (only for dst="enable"), возможные формы записи: см. possible forms of writing: see ats;
  • ntp1, ntp2 - адреса основного и резервного NTP серверов- the addresses of the primary and backup NTP servers;
  • ntp_period - период синхронизации с NTP серверами в секундах;
    После установки параметров перезагрузка системы не требуется. Автоматически перегружается только служба времени и изменения вступают в силу.

Установка и синхронизация времени

Вызовы для синхронизации и установке текущего времени в системе :

  • synctime - синхронизация времени по NTP;
  • settime - установка времени. Дополнительные поля (параметры):
    time - время в формате Unix Time Stamp- the period of synchronization with NTP servers in seconds;

After you set the parameters, you do not need to reboot the system. The time service is automatically rebooted and the changes take effect.

Installation and synchronization of time

Calls to synchronize and set the current time in the system:

  • synctime - synchronization of time by NTP;
  • settime - time setting. Additional fields (parameters) are:
    • time - time in Unix Time Stamp format;