ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Igor Homyakov" <homyakov@ramax.spb.ru>
To: <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] date +%s
Date: Tue Oct  2 16:20:29 2001
Message-ID: <024101c14b3c$9a3dd8f0$4901040a@homyakov> (raw)
In-Reply-To: <20011002110832.62238234C9@mail.anker.ru>

----- Original Message -----
From: "Maxim Mitrofanov" <mdk@anker.ru>
To: <mandrake-russian@altlinux.ru>
Sent: Tuesday, October 02, 2001 3:07 PM
Subject: Re: [mdk-re] date +%s


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

подойдет ?

date +%s | awk '{ print strftime("%d/%m/%Y", $1) }'

--
Igor Homyakov                            RAMAX International
System Administrator         Banking Technologies Department
<homyakov(at)ramax.spb.ru>              http://www.ramax.com





  parent reply	other threads:[~2001-10-02 16:20 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 [this message]
2001-10-03  6:18       ` Maxim Mitrofanov
2001-10-03  2:33     ` Oleg S. Gints
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='024101c14b3c$9a3dd8f0$4901040a@homyakov' \
    --to=homyakov@ramax.spb.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