1 |
On Friday 27 October 2006 19:34, Jorge Almeida wrote: |
2 |
> On Fri, 27 Oct 2006, Richard Fish wrote: |
3 |
> >> I'm assuming that 1161911504 is some date. If so, how can I |
4 |
> >> translate it into something human-meaningfull? |
5 |
> > |
6 |
> > carcharias rjf # date -d @1161911504 |
7 |
> > Thu Oct 26 18:11:44 MST 2006 |
8 |
> |
9 |
> Well, there's one more solution :) |
10 |
> Would you say that using date is faster/lighter than awk (as per |
11 |
> other replies)? This is to be included in a script, so the |
12 |
> lighter the better... |
13 |
> Thanks. |
14 |
> |
15 |
I would think so, yes. If you write a script like this... |
16 |
|
17 |
#!/bin/sh |
18 |
# unix-time |
19 |
date -d @$1 |
20 |
|
21 |
...and enter: |
22 |
$ unix-time 1161911504 |
23 |
Fri Oct 27 02:11:44 BST 2006 |
24 |
|
25 |
-- |
26 |
Peter |
27 |
======================================================================== |
28 |
Gentoo Linux: Portage 2.1.2_pre3-r9 kernel-2.6.18-gentoo |
29 |
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc(GCC): 4.1.1 |
30 |
KDE: 3.5.5 Qt: 3.3.6 |
31 |
======================================================================== |
32 |
-- |
33 |
gentoo-user@g.o mailing list |