From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 14 Nov 2006 16:04:50 +0300 From: Grigory Fateyev To: sysadmins@lists.altlinux.org Message-ID: <20061114160450.090e5589@greg> In-Reply-To: <20061114144230.077d2425@greg> References: <455992B7.2030802@og.brother-ttc.ru> <20061114144230.077d2425@greg> Organization: Anastasia.ru X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.6.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Subject: Re: [Sysadmins] =?koi8-r?b?aXB0YWJsZXMsIHVsb2ctYWNjdGQgy8HLINDJ08HU?= =?koi8-r?b?2CDJzsbP0s3Bw8nAINcg0sHaztnFIMbByszZ?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 13:04:50 -0000 Archived-At: List-Archive: Hello Grigory Fateyev! On Tue, 14 Nov 2006 14:42:30 +0300 you wrote: > Hello georg l k.! > On Tue, 14 Nov 2006 12:56:07 +0300 you wrote: > > > ip_клиента как раз то что меня интересует > > 1163497868 - время как его привести в "читаемый" вид в скрипте? > > python: > >>> import socket, struct > >>> socket.inet_ntoa(struct.pack('!L', 1382039556)) > '82.96.64.4' ой, Вам время надо :) >>> from datetime import datetime >>> datetime.fromtimestamp(1163497868).isoformat(' ') '2006-11-14 12:51:08' -- Всего наилучшего! Григорий greg [at] anastasia [dot] ru Письмо отправлено: 2006/11/14 16:01