On 15-May-98 Milos Prudek wrote:
> I need to understand the included date format. Does anyone know how to
> decode this into human-readable date and time?
>
> The date-time code is in the third column of course.
>
> HUaspro /dev/ttyC4 895203401 Start
> **END** /dev/ttyC4 895203526 Stop
> HUneria /dev/ttyC4 895206271 Start
This is the number of seconds since Jan 01, 1970. You can calculate this value
using "date +%s" to find the current time in seconds.
To go the other way, you'd either need some perl trick I don't know about, or
use the strftime() function in a C program. Ask if you need help writing it.
Dave
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.