/* Copyright (c) 1982 Regents of the University of California */

static char sccsid[] = "@(#)mkdate.c 1.2 7/3/83";

#include <stdio.h>
#include <sys/time.h>

main()
{
    struct tm *t;
    long clock;
    char name[100];
    int namelen;

    printf("char *date = \"");
    clock = time(0);
    t = localtime(&clock);
    printf("19%d-%02d-%02d ", t->tm_year, t->tm_mon + 1, t->tm_mday);
    printf("%d:%02d", t->tm_hour, t->tm_min);
    gethostname(name, &namelen);
    printf(" (%s)", name);
    printf("\";\n");
}
