#include <stdio.h>
#include <stdlib.h>
#include <time.h>


/* Love, love don't come easy ! */
int main(int argc, char **argv)
{
    time_t unixtime;

    if(argc != 2) {
        fprintf(stderr, "Usage: %s <unix time>\n", argv[0]); 
        exit(-1);
    }

    unixtime = atol(argv[1]);

    if(unixtime == 0) {
        fprintf(stderr, "Unix time is incorrect\n");
        exit(-1);
    }

    printf("%s", ctime(&unixtime));

    return(0);
}
