/*
 * unixtime
 *
 * $Id: unixtime.c,v 1.1 2002/06/21 17:48:18 johan Exp $
 *

 * unixtime prints out the time in the world of UNIX: seconds since 1 Jan
 * 1970 UTC. That's it.

 * unixtime has been compiled and tested on:
 *  SunOS 5.[78]
 *  NetBSD 1.[45]
 *
 * (C) 2001-2002 Johan van Zanten
 * johan@giantfoo.org
 * http://www.giantfoo.org/~johan

 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.

 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.

 *  The GPL can be found at http://www.fsf.org/copyleft/gpl.html

 * Unlimited License to use this program is granted to anyone who
 * wants it.
 */

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


main(){
  struct timeval tv;
  struct timezone dtz;
  gettimeofday(&tv, &dtz);
  printf("%i\n", tv.tv_sec);
};
