ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Oleg S. Gints" <oleg@cec.amur.elektra.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] date +%s
Date: Wed Oct  3 02:33:14 2001
Message-ID: <3BBA4092.3813A2BC@cec.amur.elektra.ru> (raw)
In-Reply-To: <20011002110832.62238234C9@mail.anker.ru>

> 
> > >         date +%s | proga и получить 02/10/2001
> >
> > $ date +%d/%m/20%y            поможет?
> >
> > Петр
> 
>    Да нет Петр вы меня не правильно поняли, я там намудрил,  первая
> колонка в логе сквид содержит аналог date +%s  - те время в секундах от
> 01/01/1970 дак вот его и нужно обратно преобразовать в dd/mm/yyyy ну
> или хотябы в mmyyyy
>   Да "подручные средства" - это для шел-скрипта те без С или Перл.

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

#!/usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;

Может это поможет?

------------------
С уважением, Олег.



  parent reply	other threads:[~2001-10-03  2:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02 13:39 Maxim Mitrofanov
2001-10-02 13:50 ` Peter V. Saveliev
2001-10-02 15:08   ` Maxim Mitrofanov
2001-10-02 15:51     ` Antonio
2001-10-02 15:54       ` Antonio
2001-10-02 16:44         ` Peter V. Saveliev
2001-10-02 22:49       ` HB
2001-10-03  9:30         ` Antonio
2001-10-03 13:17           ` HB
2001-10-02 16:04     ` Peter V. Saveliev
2001-10-03  7:24       ` Re[2]: " Russu V.F.
2001-10-02 16:20     ` Igor Homyakov
2001-10-03  6:18       ` Maxim Mitrofanov
2001-10-03  2:33     ` Oleg S. Gints [this message]
2001-10-03  7:16     ` Re[2]: " Russu V.F.
2001-10-02 21:06   ` HB
2001-10-03  7:42     ` Re[2]: " Russu V.F.

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=3BBA4092.3813A2BC@cec.amur.elektra.ru \
    --to=oleg@cec.amur.elektra.ru \
    --cc=mandrake-russian@altlinux.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