ATOT

Section: C Library Functions (3)
Updated: 6/20/86
Index Return to Main Contents
 

NAME

atot - convert ascii date string to time  

SYNOPSIS

#include <sys/types.h>
#include <sys/time.h>
time_t atot(datestr)
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.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
DIAGNOSTICS

This document was created by man2html, using the manual pages.
Time: 11:12:47 GMT, November 04, 2022