NAME
atot - convert ascii date string to time

SYNOPSIS
#include <sys/types.h>
#include <sys/time.h>

time_t atot(datestr)
const char *datestr;

DESCRIPTION
Atot converts an ascii date specification to its equivalent UNIX
date/time representation. The date string is parsed using
parsedate(3). The month, day and year default to today while the
time defaults to 00:00:00.

SEE ALSO
gettimeofday(2), ctime(3), gtime(3), localtime(3), parsedate(3)

DIAGNOSTICS
Returns the converted time, -1 for invalid dates.