|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 1122 (0x462) Types: TextFile Names: »tm2ut.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/psap/tm2ut.c«
/* tm2ut.c - tm to time string */ #ifndef lint static char *rcsid = "$Header: /f/osi/psap/RCS/tm2ut.c,v 7.0 89/11/23 22:13:54 mrose Rel $"; #endif /* * $Header: /f/osi/psap/RCS/tm2ut.c,v 7.0 89/11/23 22:13:54 mrose Rel $ * * * $Log: tm2ut.c,v $ * Revision 7.0 89/11/23 22:13:54 mrose * Release 6.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ /* LINTLIBRARY */ #include <stdio.h> #include "psap.h" #ifdef OSX #include <sys/time.h> #endif #define YEAR(y) ((y) >= 100 ? (y) : (y) + 1900) /* \f */ void tm2ut (tm, ut) register struct tm *tm; register UTC ut; { bzero ((char *) ut, sizeof *ut); ut -> ut_year = YEAR (tm -> tm_year); ut -> ut_mon = tm -> tm_mon + 1; ut -> ut_mday = tm -> tm_mday; ut -> ut_hour = tm -> tm_hour; ut -> ut_min = tm -> tm_min; ut -> ut_sec = tm -> tm_sec; ut -> ut_zone = 0; ut -> ut_flags = UT_ZONE | UT_SEC; }