On 11/23/20 12:28 PM, Dr Rainer Woitok wrote:
Greetings,

looking for a small, fast utility (preferably written in C)  accepting a
Unix time (seconds since 1970-01-01) as argument  and printing the corr-
esponding local time to standard output.

Any pointers?

Sincerely,
   Rainer

I'm not aware of any already existing programs, but considering it would only take few lines of code, check localtime() to convert a time_t unixtime to a struct tm broken down time, and strftime() to convert to a string with your chosen format.



Reply via email to