Qmail
[Top] [All Lists]

Re: tai64n date format

To: qmail@list.cr.yp.to
Subject: Re: tai64n date format
From: "Vahid Moghaddasi" <vahid.moghaddasi@gmail.com>
Date: Sun, 1 Apr 2007 17:20:04 -0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sU7vet8WcKXvAnE2aD4ZApKLNYD25CwDy9GGgJ7CFjBgR/36YGXrMHOWTr4PHP0l7jR7BuUC0NA2ZjTSTGDVCJjKKHDLbEkiPOOuw67MLl/qWJshGNFdzUbGBXMiP8OcBf0G2kSPC1D2BVvzKUgIbXmsSCHazBOLvwu30wZhrBA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ptSWv7S9OgvqQAjzLtf03rYlGQ7RqSc1Dl15yiQLI3/ocgH6PeydpxPTbc1Cea0yS7JxO0OirfObVraW497FkJHib02HDFNq4ZRYbkmccL4izB5YvEMDi9cuBMWmhal3jjHO0m6jRC8zBBDdSU1aedwos6t4aiC2mlk1FkDok2E=
Domainkey-status: good (test mode)
In-reply-to: <20070401185119.gvx5onvbvokzrjsm@m.safari.iki.fi>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <a3bd4fe00704011052n1132c340k1320805947292f73@mail.gmail.com> <20070401181250.GA11214@odin.dempsky.org> <a3bd4fe00704011137s6186d8c6v60f5c4d200fb47ad@mail.gmail.com> <20070401185119.gvx5onvbvokzrjsm@m.safari.iki.fi>
On 4/1/07, Sami Farin <safari-qmail@safari.iki.fi> wrote:

$ printf "@%x00000000\n" $(( $(date -d "2007-04-01 20:40:46.790878500" "+%s") + 
4611686018427387914 ))
@40000000460feea800000000
$ echo @40000000460feea800000000 | tai64nlocal
2007-04-01 20:40:46.000000000

I think that I can use this to find the date entry in the log file
with some changes. What I really want to do is similar to this: "cat
current | grep <today's TAI date> > file.out. Then I would have all
the lines for today's date in the file.out file.
I need to do this so I can run different reports on mail delivery.

<Prev in Thread] Current Thread [Next in Thread>