Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Converting time formats
Date: Sat, 28 May 2011 16:52:26
Message-Id: 201105281850.56873.wonko@wonkology.org
In Reply to: [gentoo-user] Converting time formats by Dale
1 Dale asks:
2
3 > I asked this once before but I can't find it. I have a log file that
4 > has time stamps that look like this:
5 >
6 > lastrun = 1306574899
7 >
8 > What do I use to get the human time for that? I thought it was the date
9 > command but I couldn't find it in the man page. I tried google but I
10 > can't recall what that time stamp is called either so not sure what to
11 > search for.
12
13 It's seconds since 1970. You can convert them like this:
14 date -d @1306574899
15
16 Wonko

Replies

Subject Author
Re: [gentoo-user] Converting time formats Dale <rdalek1967@×××××.com>