#include "usual.h"

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <sys/time.h>

String program_name;

int
main(int argc, String_Array argv)
{
  struct stat status;
  String mtime;

  program_name = argv[0];
  if (argc != 2) goto usages;
  if (stat(argv[1], &status))
      err(errno, "File System Error:  Getting status of %s", argv[1]);
  mtime = ctime(&status.st_mtime);
  printf("%s", mtime);

  exit(0);
 usages:
  fprintf(stderr, "usage: %s <filename>\n", program_name);
  exit(1);
}


