* [Comm] Программа для настройки часов @ 2005-10-30 10:25 Vitaly Lipatov 2005-10-30 11:39 ` Aleksandr Blokhin 0 siblings, 1 reply; 22+ messages in thread From: Vitaly Lipatov @ 2005-10-30 10:25 UTC (permalink / raw) To: community Кто-нибудь видел отдельную графическую программу для выставления времени? Никак не могу найти. -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 10:25 [Comm] Программа для настройки часов Vitaly Lipatov @ 2005-10-30 11:39 ` Aleksandr Blokhin 2005-10-30 18:15 ` Владимир Гусев 0 siblings, 1 reply; 22+ messages in thread From: Aleksandr Blokhin @ 2005-10-30 11:39 UTC (permalink / raw) To: ALT Linux Community Vitaly Lipatov wrote: >Кто-нибудь видел отдельную графическую программу для выставления >времени? >Никак не могу найти. > > > timetool -- Best regards AB -- ... In nomine Altli, et Ctrli, et Spititus Deli, Reset! ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 11:39 ` Aleksandr Blokhin @ 2005-10-30 18:15 ` Владимир Гусев 2005-10-30 19:39 ` Vitaly Lipatov 2005-10-31 3:10 ` Evgenii Terechkov 0 siblings, 2 replies; 22+ messages in thread From: Владимир Гусев @ 2005-10-30 18:15 UTC (permalink / raw) To: ALT Linux Community >> Кто-нибудь видел отдельную графическую программу для выставления >> времени? >> Никак не могу найти. > timetool [vova@vova vova]$ timetool Error in startup script: can't read "cpld": no such variable while executing "label .hat -padx 10 -pady 10 -bitmap @$cpld/loopy/loopy_1.xbm -foreground Red" (file "/usr/bin/timetool" line 395) P.S. Дистрибутив ALT Linux Master 2.4 -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 18:15 ` Владимир Гусев @ 2005-10-30 19:39 ` Vitaly Lipatov 2005-10-30 20:03 ` Владимир Гусев 2005-10-31 3:10 ` Evgenii Terechkov 1 sibling, 1 reply; 22+ messages in thread From: Vitaly Lipatov @ 2005-10-30 19:39 UTC (permalink / raw) To: ALT Linux Community On Sunday 30 October 2005 21:15, Владимир Гусев wrote: > [vova@vova vova]$ timetool > Error in startup script: can't read "cpld": no such variable повесил https://bugzilla.altlinux.org/show_bug.cgi?id=8377 программой похоже годами не пользуются... > while executing > "label .hat -padx 10 -pady 10 -bitmap @$cpld/loopy/loopy_1.xbm > -foreground Red" > (file "/usr/bin/timetool" line 395) > > P.S. Дистрибутив ALT Linux Master 2.4 -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 19:39 ` Vitaly Lipatov @ 2005-10-30 20:03 ` Владимир Гусев 2005-10-31 12:37 ` Вячеслав Диконов 0 siblings, 1 reply; 22+ messages in thread From: Владимир Гусев @ 2005-10-30 20:03 UTC (permalink / raw) To: ALT Linux Community >> [vova@vova vova]$ timetool >> Error in startup script: can't read "cpld": no such variable > повесил > https://bugzilla.altlinux.org/show_bug.cgi?id=8377 > программой похоже годами не пользуются... Да уж.. Хотя вещь неплохая.. судя по отзывам.. -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 20:03 ` Владимир Гусев @ 2005-10-31 12:37 ` Вячеслав Диконов 2005-10-31 13:08 ` Владимир Гусев 0 siblings, 1 reply; 22+ messages in thread From: Вячеслав Диконов @ 2005-10-31 12:37 UTC (permalink / raw) To: ALT Linux Community [-- Attachment #1: Type: text/plain, Size: 495 bytes --] В Вск, 30/10/2005 в 23:03 +0300, Владимир Гусев пишет: > >> [vova@vova vova]$ timetool > >> Error in startup script: can't read "cpld": no such variable > > повесил > > https://bugzilla.altlinux.org/show_bug.cgi?id=8377 > > программой похоже годами не пользуются... > > Да уж.. Хотя вещь неплохая.. судя по отзывам.. > > Я поправил (приложено). Там все элементарно - путь к картинке не нашелся. Интерфейс неплохо бы переписать и на хелпер посадить, чтобы паролями не донимало. [-- Attachment #2: timetool --] [-- Type: text/plain, Size: 10694 bytes --] #!/usr/bin/wish -f # This requires GNU date # This code is no longer process intensive! # I added a date command to rhswish which returns # the result of date(NULL) (see date(2)). date # is now used to keep time. set ttld /usr/lib/timetool if {[catch {source $ttld/dialog.tcl}] != 0} { puts "Couldn't load dialog.tcl" puts "(normally this is /usr/lib/timetool)" exit 0 } set selected_color Red set unselected_color Black set month_length(1) 31 set month_length(2) 28 set month_length(3) 31 set month_length(4) 30 set month_length(5) 31 set month_length(6) 30 set month_length(7) 31 set month_length(8) 31 set month_length(9) 30 set month_length(10) 31 set month_length(11) 30 set month_length(12) 31 set month_name(1) Jan set month_name(2) Feb set month_name(3) Mar set month_name(4) Apr set month_name(5) May set month_name(6) Jun set month_name(7) Jul set month_name(8) Aug set month_name(9) Sep set month_name(10) Oct set month_name(11) Nov set month_name(12) Dec # Update the clock every second proc update_clock {} { global cl_second old_second set new_second [exec date +%s] after 1000 update_clock set inc [expr $new_second - $old_second] set old_second $new_second # The takes care of old_second == 59 and new_second == 0 if {$inc < 0} { incr inc 60 } adj_clock $inc } # Add n seconds to the clock proc adj_clock {n} { global cl_second incr cl_second $n if {$n > 0} { if {$cl_second > 59} { incr cl_second -60 incr_minute } } else { if {$cl_second < 0} { incr cl_second 60 decr_minute } } redraw_clock } proc incr_minute {} { global cl_minute incr cl_minute if {$cl_minute > 59} { set cl_minute 0 incr_hour } } proc decr_minute {} { global cl_minute incr cl_minute -1 if {$cl_minute < 0} { set cl_minute 59 decr_hour } } proc incr_date {} { global cl_date cl_month cl_year cur_month_name month_name incr cl_date if {$cl_date > [days_in_month]} { set cl_date 1 incr cl_month if {$cl_month > 12} { set cl_month 1 incr cl_year } set cur_month_name $month_name($cl_month) } } proc decr_date {} { global cl_date cl_month cl_year cur_month_name month_name incr cl_date -1 if {$cl_date == 0} { incr cl_month -1 if {$cl_month == 0} { set cl_month 12 incr cl_year -1 } set cl_date [days_in_month] set cur_month_name $month_name($cl_month) } } proc incr_hour {} { global cl_hour incr cl_hour if {$cl_hour > 23} { set cl_hour 0 incr_date } } proc decr_hour {} { global cl_hour incr cl_hour -1 if {$cl_hour < 0} { set cl_hour 23 decr_date } } proc sb_adj_hour {n} { if {$n > 0} { decr_hour } else { incr_hour } redraw_clock } proc sb_adj_minute {n} { if {$n > 0} { decr_minute } else { incr_minute } redraw_clock } proc sb_adj_second {n} { adj_clock [expr 0 - $n] # Ne need to redraw since adj_clock does it } proc sb_adj_date {n} { if {$n > 0} { decr_date } else { incr_date } redraw_clock } proc sb_adj_year {n} { global cl_year cl_month cl_date # Only thing to watch out for is if cl_date is 29 and cl_month is 2 # If so, just change it to 28 to be safe if {$cl_month == 2 && $cl_date == 29} { set cl_date 28 } if {$n > 0} { incr cl_year -1 } else { incr cl_year } redraw_clock } proc sb_adj_month {n} { global cl_month cl_date cl_year cur_month_name month_name # Just watch cl_date to see if it goes over days_in_month if {$n > 0} { incr cl_month -1 if {$cl_month == 0} { set cl_month 12 incr cl_year -1 } } else { incr cl_month if {$cl_month == 13} { set cl_month 1 incr cl_year } } # Now check the days in month set d [days_in_month] if {$cl_date > $d} { set cl_date $d } set cur_month_name $month_name($cl_month) redraw_clock } proc sb_dispatch {n} { global selected_item switch -exact $selected_item { .hour {sb_adj_hour $n} .minute {sb_adj_minute $n} .second {sb_adj_second $n} .month {sb_adj_month $n} .date {sb_adj_date $n} .year {sb_adj_year $n} } } proc days_in_month {} { global cl_month cl_year month_length if {$cl_month == 2} { if {[expr $cl_year / 4.0] != [expr $cl_year / 4]} { return 28 } if {[expr $cl_year / 100.0] != [expr $cl_year / 100]} { return 29 } if {[expr $cl_year / 400.0] != [expr $cl_year / 400]} { return 28 } return 29 } else { return $month_length($cl_month) } } proc redraw_clock {} { global cl_year cl_month cl_date cl_hour cl_minute cl_second time_mode cur_month_name # AM/PM if {$cl_hour > 11} { .ampm configure -text " PM" } else { .ampm configure -text " AM" } # Hours if {$time_mode == "military"} { .hour configure -text [format "%02d" $cl_hour] } else { if {$cl_hour > 12} { .hour configure -text [format "%2d" [expr $cl_hour - 12]] } elseif {$cl_hour == 0} { .hour configure -text "12" } else { .hour configure -text [format "%2d" $cl_hour] } } # Minutes and Seconds .minute configure -text [format "%02d" $cl_minute] .second configure -text [format "%02d" $cl_second] # Date .month configure -text $cur_month_name .date configure -text $cl_date .year configure -text $cl_year # Red Hat Software rules spin_hat } proc reset_clock {} { global cl_month cl_date cl_hour cl_minute cl_second cl_year month_name cur_month_name set time [exec /bin/date "+%-m %-d %-H %-M %-S %-Y"] set cl_month [lindex $time 0] set cl_date [lindex $time 1] set cl_hour [lindex $time 2] set cl_minute [lindex $time 3] set cl_second [lindex $time 4] set cl_year [lindex $time 5] set cur_month_name $month_name($cl_month) } proc set_system_time {} { global cl_year cl_month cl_date cl_hour cl_minute cl_second utc_time # Warning set res [rhs_continue_dialog "WARNING!\n\nChanging your system clock can wreak havoc\nwith processes that depend on the time.\n\nIf you continue and reset the clock,\nyou should probably reboot your system."] if {$res == 1} { return } # Set the system time exec /bin/date [format "%02d%02d%02d%02d%04d.%02d" $cl_month $cl_date $cl_hour $cl_minute $cl_year $cl_second] # Write system time to CMOS clock if {$utc_time == 1} { exec /sbin/hwclock --utc --systohc } else { exec /sbin/hwclock --localtime --systohc } # This keeps things sane update_clock reset_clock } proc spin_hat {} { global hat_pos ttld incr hat_pos if {$hat_pos > 12} { set hat_pos 1 } .hat configure -bitmap @$ttld/loopy/loopy_$hat_pos.xbm } frame .time -borderwidth 2 -relief groove frame .clock #set font -adobe-times-bold-r-normal--20-100-*-*-p-150-*-* set font -*-fixed-medium-r-normal--24-170-100-100-c-120-* label .hour -font $font\ -borderwidth 0 -padx 0 -foreground $unselected_color label .hourcolon -text ":" -font $font \ -borderwidth 0 -padx 0 label .minute -font $font \ -borderwidth 0 -padx 0 -foreground $unselected_color label .minutecolon -text ":" -font $font \ -borderwidth 0 -padx 0 label .second -font $font \ -borderwidth 0 -padx 0 -foreground $unselected_color label .ampm -font $font \ -borderwidth 0 -padx 0 pack .hour .hourcolon .minute .minutecolon .second .ampm -side left -in .clock frame .calendar label .month -font $font \ -borderwidth 0 -padx 0 -foreground $unselected_color label .monthspace -text " " -font $font \ -borderwidth 0 -padx 0 label .date -font $font \ -borderwidth 0 -padx 0 -foreground $unselected_color label .datecomma -text ", " -font $font \ -borderwidth 0 -padx 0 label .year -font $font \ -borderwidth 0 -padx 0 -foreground $unselected_color pack .month .monthspace .date .datecomma .year -side left -in .calendar pack .clock .calendar -side top -in .time -padx 4 -pady 1 frame .control -borderwidth 2 -relief groove checkbutton .militarytime -text "24 Hour Time" -variable time_mode -onvalue military -offvalue standard message .msg -text "Click on the part of the time and date you wish to change and use the arrows to adjust it." scrollbar .sb -command sb_dispatch -repeatinterval 50 -width 30 button .reset -text "Reset Time" -command "reset_clock ; redraw_clock" pack .reset .militarytime -side bottom -in .control -pady 2 -ipadx 4 -ipady 1 pack .msg .sb -side left -in .control -padx 2 -pady 2 frame .setf -borderwidth 2 -relief sunken button .set -text "Set System Clock" -command "set_system_time" pack .set -in .setf -padx 4 -pady 2 -ipadx 4 -ipady 1 button .quit -text "Exit Time Machine" -command "exit 0" #label .hat -padx 10 -pady 10 -bitmap [image create photo -file $env(CONTROL_PANEL_LIB_DIR)/loopy/loopy_1.gif] \ # -foreground Red label .hat -padx 10 -pady 10 -bitmap @/usr/lib/timetool/loopy/loopy_1.xbm -foreground Red pack .time .control .setf -side top -padx 4 -pady 2 pack .quit -side top -padx 4 -pady 3 -ipadx 4 -ipady 1 wm title . "Time Machine" proc time_mode_trace {we dont care} { global time_mode if {$time_mode == "military"} { pack unpack .ampm } else { pack .ampm -side left -after .second } redraw_clock } proc select_item {i} { global selected_item unselected_color selected_color if {$selected_item != ""} { $selected_item configure -foreground $unselected_color } set selected_item $i $i configure -foreground $selected_color } proc toggle_hat {} { global hat_up if {$hat_up == 1} { pack unpack .hat set hat_up 0 } else { pack .hat -side top -after .quit set hat_up 1 } } # Set up bindings on items of interest foreach i ".hour .minute .second .month .date .year" { bind $i <1> "select_item $i" } bind .ampm <1> "toggle_hat" if {[exec id -u] != 0} { rhs_error_dialog "You must be root to run the Time Tool." exit 1 } # Find out if we are using UTC or local time set utc_time 0 if {[file isfile "/etc/sysconfig/clock"]} { set fd [open "/etc/sysconfig/clock" r] while {[gets $fd x] != "-1"} { if {[regexp ".*GMT.*" $x]} { set utc_time 1 } elseif {[regexp ".*UTC.*" $x]} { if {[regexp ".*UTC.*(yes|true)" $x]} { set utc_time 1 } } } close $fd } reset_clock # This keeps track of time on the system clock set old_second [exec date +%s] set time_mode standard trace variable time_mode w time_mode_trace set selected_item "" set hat_pos 1 set hat_up 0 redraw_clock after 1000 update_clock ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-31 12:37 ` Вячеслав Диконов @ 2005-10-31 13:08 ` Владимир Гусев 0 siblings, 0 replies; 22+ messages in thread From: Владимир Гусев @ 2005-10-31 13:08 UTC (permalink / raw) To: ALT Linux Community >>>> [vova@vova vova]$ timetool >>>> Error in startup script: can't read "cpld": no such variable >>> повесил >>> https://bugzilla.altlinux.org/show_bug.cgi?id=8377 >>> программой похоже годами не пользуются... >> Да уж.. Хотя вещь неплохая.. судя по отзывам.. > Я поправил (приложено). Там все элементарно - путь к картинке не нашелся. > Интерфейс неплохо бы переписать и на хелпер посадить, чтобы паролями не > донимало. Спасибо -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-30 18:15 ` Владимир Гусев 2005-10-30 19:39 ` Vitaly Lipatov @ 2005-10-31 3:10 ` Evgenii Terechkov 2005-10-31 8:33 ` Владимир Гусев 1 sibling, 1 reply; 22+ messages in thread From: Evgenii Terechkov @ 2005-10-31 3:10 UTC (permalink / raw) To: ALT Linux Community [-- Attachment #1: Type: text/plain, Size: 410 bytes --] Владимир Гусев wrote: > [vova@vova vova]$ timetool > Error in startup script: can't read "cpld": no such variable while > executing > "label .hat -padx 10 -pady 10 -bitmap @$cpld/loopy/loopy_1.xbm > -foreground Red" > (file "/usr/bin/timetool" line 395) Очепятка :-). Мне как понадобилось, пришлось править. Лови патч. P.S.: Может в сторону ntp посмотреть? Я посмотрел и теперь доволен. [-- Attachment #2: timetool.patch --] [-- Type: text/plain, Size: 512 bytes --] --- timetool 2004-04-02 18:38:15 +0800 +++ /usr/bin/timetool 2005-10-05 02:22:20 +0800 @@ -392,7 +392,7 @@ #label .hat -padx 10 -pady 10 -bitmap [image create photo -file $env(CONTROL_PANEL_LIB_DIR)/loopy/loopy_1.gif] \ # -foreground Red -label .hat -padx 10 -pady 10 -bitmap @$cpld/loopy/loopy_1.xbm -foreground Red +label .hat -padx 10 -pady 10 -bitmap @$ttld/loopy/loopy_1.xbm -foreground Red pack .time .control .setf -side top -padx 4 -pady 2 pack .quit -side top -padx 4 -pady 3 -ipadx 4 -ipady 1 ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-31 3:10 ` Evgenii Terechkov @ 2005-10-31 8:33 ` Владимир Гусев 2005-10-31 8:49 ` Mike Lykov 2005-10-31 14:03 ` [Comm] " Michael Shigorin 0 siblings, 2 replies; 22+ messages in thread From: Владимир Гусев @ 2005-10-31 8:33 UTC (permalink / raw) To: ALT Linux Community >> [vova@vova vova]$ timetool >> Error in startup script: can't read "cpld": no such variable while >> executing >> "label .hat -padx 10 -pady 10 -bitmap @$cpld/loopy/loopy_1.xbm >> -foreground Red" >> (file "/usr/bin/timetool" line 395) > Очепятка :-). Мне как понадобилось, пришлось править. Лови патч. Спасибо! Попробую.. > P.S.: Может в сторону ntp посмотреть? Я посмотрел и теперь доволен. Я уже давно в его стороне.. и, кстати говоря, только благодаря синхронизации с сервером времени удался автоматический переход на зимнее время.. Эту софтину хотел для отца, так как у него почему-то время не перевелось автоматически, а с инетом у него диалапное соединение, вот я и не стал там в свое время настраивать ntp.. Как переводить время (какими командами в консоли) я его научил и все прошло, но все-таки графич. интерфейс ему был бы проще.. А вот почему Мастер 2.4 САМ время не перевел - не знаю.. при инсталляции выбирал свою зону и т.д... -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-31 8:33 ` Владимир Гусев @ 2005-10-31 8:49 ` Mike Lykov 2005-10-31 11:21 ` [Comm] " Oleg Dolgov 2005-10-31 11:44 ` [Comm] Программа для настройки часов Владимир Гусев 2005-10-31 14:03 ` [Comm] " Michael Shigorin 1 sibling, 2 replies; 22+ messages in thread From: Mike Lykov @ 2005-10-31 8:49 UTC (permalink / raw) To: ALT Linux Community В сообщении от Понедельник 31 Октябрь 2005 12:33 Владимир Гусев написал: > А вот почему Мастер 2.4 САМ время не перевел - не знаю.. при инсталляции > выбирал свою зону и т.д... у меня и compact3-rc10, и master24 перевел.. -- Mike Lykov Samara, "Vesna" parfum company, System administrator ^ permalink raw reply [flat|nested] 22+ messages in thread
* [Comm] Re: Программа для настройки часов 2005-10-31 8:49 ` Mike Lykov @ 2005-10-31 11:21 ` Oleg Dolgov 2005-10-31 13:14 ` [Comm] Re: рТПЗТБННБ ДМС ОБУФТПКЛЙ ЮБУПЧ Dmitry Lebkov 2005-10-31 11:44 ` [Comm] Программа для настройки часов Владимир Гусев 1 sibling, 1 reply; 22+ messages in thread From: Oleg Dolgov @ 2005-10-31 11:21 UTC (permalink / raw) To: community В письме Mon, 31 Oct 2005 13:49:26 +0500, Mike Lykov написал: > у меня и compact3-rc10, и master24 перевел.. ALM-2.2 > Compact-2.3 > ALM-2.4+updates+backports Время не перевелось. Пришлось руками. Может пакета какого не хватает? Кто ведает переводом часов? -- С наилучшими, Олег Долгов <dolgov AT mail DOT zp DOT ua> Registered Linux user #315454 ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: рТПЗТБННБ ДМС ОБУФТПКЛЙ ЮБУПЧ 2005-10-31 11:21 ` [Comm] " Oleg Dolgov @ 2005-10-31 13:14 ` Dmitry Lebkov 0 siblings, 0 replies; 22+ messages in thread From: Dmitry Lebkov @ 2005-10-31 13:14 UTC (permalink / raw) To: ALT Linux Community Oleg Dolgov wrote: > В письме Mon, 31 Oct 2005 13:49:26 +0500, Mike Lykov > написал: > >>у меня и compact3-rc10, и master24 перевел.. > > > ALM-2.2 > Compact-2.3 > ALM-2.4+updates+backports > Время не перевелось. Пришлось руками. > > Может пакета какого не хватает? Кто ведает переводом часов? man zic и далее по ссылкам. -- WBR, Dmitry Lebkov ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-31 8:49 ` Mike Lykov 2005-10-31 11:21 ` [Comm] " Oleg Dolgov @ 2005-10-31 11:44 ` Владимир Гусев 2005-10-31 11:51 ` Mike Lykov 1 sibling, 1 reply; 22+ messages in thread From: Владимир Гусев @ 2005-10-31 11:44 UTC (permalink / raw) To: combr, combr, ALT Linux Community >> А вот почему Мастер 2.4 САМ время не перевел - не знаю.. при инсталляции >> выбирал свою зону и т.д... > у меня и compact3-rc10, и master24 перевел.. Без понятия... не знаю, почему так случилось.. Может это ntp и перевел? -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Программа для настройки часов 2005-10-31 11:44 ` [Comm] Программа для настройки часов Владимир Гусев @ 2005-10-31 11:51 ` Mike Lykov 0 siblings, 0 replies; 22+ messages in thread From: Mike Lykov @ 2005-10-31 11:51 UTC (permalink / raw) To: ALT Linux Community В сообщении от Понедельник 31 Октябрь 2005 15:44 Владимир Гусев написал: > > у меня и compact3-rc10, и master24 перевел.. > Без понятия... не знаю, почему так случилось.. Может это ntp и перевел? compact у меня дома, и ntp я там никак не настраивал.. ;) -- Mike Lykov Samara, "Vesna" parfum company, System administrator ^ permalink raw reply [flat|nested] 22+ messages in thread
* [Comm] Re: Программа для настройки часов 2005-10-31 8:33 ` Владимир Гусев 2005-10-31 8:49 ` Mike Lykov @ 2005-10-31 14:03 ` Michael Shigorin 2005-10-31 14:23 ` Vasya Makarov ` (3 more replies) 1 sibling, 4 replies; 22+ messages in thread From: Michael Shigorin @ 2005-10-31 14:03 UTC (permalink / raw) To: ALT Linux Community On Mon, Oct 31, 2005 at 11:33:13AM +0300, Владимир Гусев wrote: > Эту софтину хотел для отца, так как у него почему-то время не > перевелось автоматически Если в BIOS время не по GMT (по крайней мере по данным Linux), то учёт летнего/зимнего времени и не производится. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:03 ` [Comm] " Michael Shigorin @ 2005-10-31 14:23 ` Vasya Makarov 2005-10-31 14:30 ` Dmitry Lebkov ` (2 subsequent siblings) 3 siblings, 0 replies; 22+ messages in thread From: Vasya Makarov @ 2005-10-31 14:23 UTC (permalink / raw) To: ALT Linux Community Michael Shigorin пишет: > On Mon, Oct 31, 2005 at 11:33:13AM +0300, Владимир Гусев wrote: > >>Эту софтину хотел для отца, так как у него почему-то время не >>перевелось автоматически > > > Если в BIOS время не по GMT (по крайней мере по данным Linux), > то учёт летнего/зимнего времени и не производится. > У меня производится. Время местное, система Compact 2.3 -> Sisyphus, ntp нету. Перевелось само без проблем. -- Regards, Vasya ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:03 ` [Comm] " Michael Shigorin 2005-10-31 14:23 ` Vasya Makarov @ 2005-10-31 14:30 ` Dmitry Lebkov 2005-10-31 14:47 ` Olvin 2005-10-31 14:31 ` Olvin 2005-10-31 16:13 ` Aleksander N. Gorohovski 3 siblings, 1 reply; 22+ messages in thread From: Dmitry Lebkov @ 2005-10-31 14:30 UTC (permalink / raw) To: shigorin, ALT Linux Community Michael Shigorin wrote: > On Mon, Oct 31, 2005 at 11:33:13AM +0300, Владимир Гусев wrote: > >>Эту софтину хотел для отца, так как у него почему-то время не >>перевелось автоматически > > > Если в BIOS время не по GMT (по крайней мере по данным Linux), > то учёт летнего/зимнего времени и не производится. Если я всё правильно помню - "Борис, ты не прав!" ;) При старте системы (ОС) software clock инициализируются значением из hardware clock и ставятся именно в GMT, после чего значение hardware clock игнорится. Дальнейшие операции со времением производятся на основе software clock и информации о тайм-зоне. Т.е. если в тайм-зоне описаны переходы зима/лето - они и будут отображаться. При рестарте системы данные в hardware clock могут быть обновлены из software clock. А могут и не. Зависимости от локальных настроек. За правильность обновления hardware clock, установленных в localtime, ничего не скажу, т.к. лет 7 уже не ставлю localtime %) Вот. %) -- WBR, Dmitry Lebkov ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:30 ` Dmitry Lebkov @ 2005-10-31 14:47 ` Olvin 2005-10-31 15:11 ` Dmitry Lebkov 0 siblings, 1 reply; 22+ messages in thread From: Olvin @ 2005-10-31 14:47 UTC (permalink / raw) To: ALT Linux Community Dmitry Lebkov wrote: >>> Эту софтину хотел для отца, так как у него почему-то время не >>> перевелось автоматически >> Если в BIOS время не по GMT (по крайней мере по данным Linux), то учёт >> летнего/зимнего времени и не производится. > Если я всё правильно помню - "Борис, ты не прав!" ;) При старте системы > (ОС) software clock инициализируются значением из hardware clock и ставятся > именно в GMT, после чего значение hardware clock игнорится. Дальнейшие > операции со времением производятся на основе software clock и информации > о тайм-зоне. Т.е. если в тайм-зоне описаны переходы зима/лето - они и будут > отображаться. При рестарте системы данные в hardware clock могут быть > обновлены из software clock. А могут и не. Зависимости от локальных настроек. > За правильность обновления hardware clock, установленных в localtime, ничего > не скажу, т.к. лет 7 уже не ставлю localtime %) Вот. %) Если бы не предполагалось изредка запускать всем известную ось, то это было бы логично. Кстати, в /etc/sysconfig/clock есть такое: UTC=false Т.е. именно эта переменная и показывает, как обрабатывать время из HWClock, когда создаются SWClock при старте системы. и если false, то придётся ещё и зону учитывать... ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:47 ` Olvin @ 2005-10-31 15:11 ` Dmitry Lebkov 0 siblings, 0 replies; 22+ messages in thread From: Dmitry Lebkov @ 2005-10-31 15:11 UTC (permalink / raw) To: ALT Linux Community Olvin wrote: > Dmitry Lebkov wrote: > >>>> Эту софтину хотел для отца, так как у него почему-то время не >>>> перевелось автоматически >>> >>> Если в BIOS время не по GMT (по крайней мере по данным Linux), то >>> учёт летнего/зимнего времени и не производится. >> >> Если я всё правильно помню - "Борис, ты не прав!" ;) При старте системы >> (ОС) software clock инициализируются значением из hardware clock и >> ставятся >> именно в GMT, после чего значение hardware clock игнорится. Дальнейшие >> операции со времением производятся на основе software clock и информации >> о тайм-зоне. Т.е. если в тайм-зоне описаны переходы зима/лето - они и >> будут >> отображаться. При рестарте системы данные в hardware clock могут быть >> обновлены из software clock. А могут и не. Зависимости от локальных >> настроек. >> За правильность обновления hardware clock, установленных в localtime, >> ничего >> не скажу, т.к. лет 7 уже не ставлю localtime %) Вот. %) > > > Если бы не предполагалось изредка запускать всем известную ось, то это > было бы логично. > Кстати, в /etc/sysconfig/clock есть такое: > UTC=false > Т.е. именно эта переменная и показывает, как обрабатывать время из > HWClock, когда создаются SWClock при старте системы. и если false, то > придётся ещё и зону учитывать... Не только. См. в /etc/init.d/clock. Там и производятся все манипуляции со временем при при запуске/остановке системы. Ну и man hwclock для полноты картины. %) -- WBR, Dmitry Lebkov > _______________________________________________ > Community mailing list > Community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:03 ` [Comm] " Michael Shigorin 2005-10-31 14:23 ` Vasya Makarov 2005-10-31 14:30 ` Dmitry Lebkov @ 2005-10-31 14:31 ` Olvin 2005-11-01 15:02 ` Michael Shigorin 2005-10-31 16:13 ` Aleksander N. Gorohovski 3 siblings, 1 reply; 22+ messages in thread From: Olvin @ 2005-10-31 14:31 UTC (permalink / raw) To: shigorin, ALT Linux Community Michael Shigorin wrote: >>Эту софтину хотел для отца, так как у него почему-то время не >>перевелось автоматически > Если в BIOS время не по GMT (по крайней мере по данным Linux), > то учёт летнего/зимнего времени и не производится. У меня дома ALM2.4. Сам перевёлся на зимнее время. ZONE=Europe/Minsk. Для синхронизации использую ntpdate при поднятии ppp0. Постоянного коннекта нет. Ночью не выходили. Время местное (в BIOS, или как его там). Что произошло? Или это у меня глюки? ^ permalink raw reply [flat|nested] 22+ messages in thread
* [Comm] Re: Программа для настройки часов 2005-10-31 14:31 ` Olvin @ 2005-11-01 15:02 ` Michael Shigorin 0 siblings, 0 replies; 22+ messages in thread From: Michael Shigorin @ 2005-11-01 15:02 UTC (permalink / raw) To: ALT Linux Community On Mon, Oct 31, 2005 at 04:31:49PM +0200, Olvin wrote: > >>Эту софтину хотел для отца, так как у него почему-то время не > >>перевелось автоматически > >Если в BIOS время не по GMT (по крайней мере по данным Linux), > >то учёт летнего/зимнего времени и не производится. > У меня дома ALM2.4. Сам перевёлся на зимнее время. ZONE=Europe/Minsk. > Для синхронизации использую ntpdate при поднятии ppp0. Постоянного > коннекта нет. Ночью не выходили. Время местное (в BIOS, или как его > там). Что произошло? Или это у меня глюки? Уфф... опять не знаю, куда толком отослать почитать. В голову приходит только "поставить initscripts и почитать его доку насчёт GMT". -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Comm] Re: Программа для настройки часов 2005-10-31 14:03 ` [Comm] " Michael Shigorin ` (2 preceding siblings ...) 2005-10-31 14:31 ` Olvin @ 2005-10-31 16:13 ` Aleksander N. Gorohovski 3 siblings, 0 replies; 22+ messages in thread From: Aleksander N. Gorohovski @ 2005-10-31 16:13 UTC (permalink / raw) To: shigorin, ALT Linux Community On Mon, 31 Oct 2005 14:03:24 -0000, Michael Shigorin wrote: > On Mon, Oct 31, 2005 at 11:33:13AM +0300, Владимир Гусев wrote: >> Эту софтину хотел для отца, так как у него почему-то время не >> перевелось автоматически > > Если в BIOS время не по GMT (по крайней мере по данным Linux), > то учёт летнего/зимнего времени и не производится. Оп-па! А то я думаю, чего это компутер "молчит, как рыба об лёд", когда уже пора пришла. :-) ^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2005-11-01 15:02 UTC | newest] Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-10-30 10:25 [Comm] Программа для настройки часов Vitaly Lipatov 2005-10-30 11:39 ` Aleksandr Blokhin 2005-10-30 18:15 ` Владимир Гусев 2005-10-30 19:39 ` Vitaly Lipatov 2005-10-30 20:03 ` Владимир Гусев 2005-10-31 12:37 ` Вячеслав Диконов 2005-10-31 13:08 ` Владимир Гусев 2005-10-31 3:10 ` Evgenii Terechkov 2005-10-31 8:33 ` Владимир Гусев 2005-10-31 8:49 ` Mike Lykov 2005-10-31 11:21 ` [Comm] " Oleg Dolgov 2005-10-31 13:14 ` [Comm] Re: рТПЗТБННБ ДМС ОБУФТПКЛЙ ЮБУПЧ Dmitry Lebkov 2005-10-31 11:44 ` [Comm] Программа для настройки часов Владимир Гусев 2005-10-31 11:51 ` Mike Lykov 2005-10-31 14:03 ` [Comm] " Michael Shigorin 2005-10-31 14:23 ` Vasya Makarov 2005-10-31 14:30 ` Dmitry Lebkov 2005-10-31 14:47 ` Olvin 2005-10-31 15:11 ` Dmitry Lebkov 2005-10-31 14:31 ` Olvin 2005-11-01 15:02 ` Michael Shigorin 2005-10-31 16:13 ` Aleksander N. Gorohovski
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git