From: Grigory Fateyev <greg@anastasia.ru> To: sysadmins@lists.altlinux.org Subject: Re: [Sysadmins] iptables, ulog-acctd как писать информацию в разные файлы Date: Tue, 14 Nov 2006 16:04:50 +0300 Message-ID: <20061114160450.090e5589@greg> (raw) In-Reply-To: <20061114144230.077d2425@greg> 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
prev parent reply other threads:[~2006-11-14 13:04 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-14 9:56 georg l k. 2006-11-14 10:31 ` Eugene Prokopiev 2006-11-14 11:35 ` Vladimir V. Kamarzin 2006-11-14 11:42 ` Grigory Fateyev 2006-11-14 13:04 ` Grigory Fateyev [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20061114160450.090e5589@greg \ --to=greg@anastasia.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git