Gentoo Archives: gentoo-user

From: "Matt Connell (Gmail)" <matthewdconnell@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Converting Unix time to local time
Date: Mon, 23 Nov 2020 17:47:03
Message-Id: da8d485d753d0ef423191c8a2f1fc27eacdb2519.camel@gmail.com
In Reply to: [gentoo-user] Converting Unix time to local time by Dr Rainer Woitok
1 On Mon, 2020-11-23 at 18:28 +0100, Dr Rainer Woitok wrote:
2 > looking for a small, fast utility (preferably written in C) accepting a
3 > Unix time (seconds since 1970-01-01) as argument and printing the corr-
4 > esponding local time to standard output.
5
6 Is the basic `date` from coreutils sufficient? If so, no need to
7 reinvent the wheel, unless I'm misunderstanding your need.
8
9 Example:
10
11 $ date --date='@2144444444'
12 2037-12-14T17:00:44 CST