This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / gnu / libexec / uucp / libunix / loctim.c
CommitLineData
41c799d4
C
1/* loctim.c
2 Turn a time epoch into a struct tm. This is trivial on Unix. */
3
4#include "uucp.h"
5
6#if HAVE_TIME_H
7#include <time.h>
8#endif
9
10#include "system.h"
11
12#ifndef localtime
13extern struct tm *localtime ();
14#endif
15
16void
17usysdep_localtime (itime, q)
18 long itime;
19 struct tm *q;
20{
21 time_t i;
22
23 i = (time_t) itime;
24 *q = *localtime (&i);
25}