From: Maxim Savrilov <Maxim.Savrilov@oberon.novocybersk.ru> To: mandrake-russian@linuxteam.iplabs.ru Subject: [mdk-re] Re: [mdk-re] Как извлечь норм.дату из access.log Date: Tue Feb 20 14:59:11 2001 Message-ID: <3A927818.765E06AA@oberon.novocybersk.ru> (raw) In-Reply-To: <000701c09b2f$a7e8e480$d53d2ad4@promeximbank.ru> Вениамин wrote: > Кто подскажет в кратце каким путем идти, чтобы определить дату в читаемом > > формате в сквидовских логах (access.log) > > У меня формируются числа(в нач.строк) типа > > "982507189.180 ..." > > "982507201.103 ..". > до точки - секунды, после - миллисекунды, очевидно > Прочитал что она вроде как в мс. от 1970 г. но тогда непонятно что точка > > отделяет и как таки лучше конвертировать в что-то удобочитаемое ? > это в perl $time_from_squid =~ /([0-9]+)\.[0-9]{3}/) $now=strftime("%Y-%m-%d %H:%M:%S",$1); это в MySQL mysql> select from_unixtime(982507189); +--------------------------+ | from_unixtime(982507189) | +--------------------------+ | 2001-02-18 20:39:49 | +--------------------------+ 1 row in set (0.00 sec) > Неужели ни у кого не было таких проблем и их решения? > ох, было, было ... ;) -- Оптимисты учат английский, пессимисты - китайский, а реалисты - устройство АКМ Maxim Savrilov http://www.novocybersk.ru/ --
next prev parent reply other threads:[~2001-02-20 14:59 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-02-16 19:38 [mdk-re] IPLabs server Alexandr Zhegallo 2001-02-16 19:59 ` Aleksandr Blohin 2001-02-16 20:51 ` Roman S 2001-02-16 21:40 ` rider 2001-02-17 19:36 ` Igor Solovyov 2001-02-18 4:45 ` Dmitry V. Levin 2001-02-18 9:31 ` Igor Solovyov 2001-02-18 14:54 ` Anton Farygin 2001-02-18 16:37 ` Igor Solovyov 2001-02-18 22:11 ` Aleksandr Blohin 2001-02-19 19:33 ` Igor Solovyov 2001-02-19 23:09 ` Dmitry Levashov 2001-02-21 20:48 ` Igor Solovyov 2001-02-22 5:24 ` Re[2]: " Alexey Verin 2001-02-22 19:29 ` Igor Solovyov 2001-02-20 10:15 ` Sergey S. Skulachenko 2001-02-20 13:24 ` cornet 2001-02-20 14:23 ` [mdk-re] Как извлечь норм.дату из access.log Вениамин 2001-02-20 14:50 ` [mdk-re] ëÁË ÉÚ×ÌÅÞØÎÏÒÍ.ÄÁÔÕ ÉÚ access.log Vyt 2001-02-20 14:59 ` Maxim Savrilov [this message] 2001-02-19 3:26 ` [mdk-re] IPLabs server Dmitry V. Levin 2001-02-18 17:17 ` Re[2]: " Roman Mediakov 2001-02-18 20:34 ` Re[3]: " Roman Mediakov
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=3A927818.765E06AA@oberon.novocybersk.ru \ --to=maxim.savrilov@oberon.novocybersk.ru \ --cc=mandrake-russian@linuxteam.iplabs.ru \ /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 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