1 .TH libtws 3 "08 November 1986"
3 libtws \- alternate date and time routines including parsing
7 .ta \w'char *dtimezone( offset, flags ); 'u
10 ^struct tws *dlocaltime( clock );~^/* local clock into tws */
13 ^struct tws *gmtime( clock );~^/* GMT clock into tws */
16 ^char *dtime( clock );~^/* clock into string */
19 ^long twclock( t );~^/* tws into clock */
22 ^long twjuliandate( t );~^/* tws into Julian day number */
25 ^struct tws *dparsetime( str );~^/* string into tws */
28 ^char *dctime( t );~^/* tws into string */
31 ^char *dasctime( t, flags );~^/* tws into string */
35 ^char *dtimezone( offset, flags );~^/* timezone into string */
38 ^char *dtwszone( t );~^/* tws's timezone into string */
41 ^char *dtimemow( );~^/* current time into string */
43 ^struct tws *dtwstime( );~^/* current time into tws */
45 ^void twscopy( tot, fromt );~^/* copy a tws */
46 struct tws *tot, *fromt;
48 ^int twsort( t1, t2 );~^/* compare two tws's */
51 ^long twsubtract( t1, t2 );~^/* seconds between t2 and t1 */
56 is a fairly complete date/time library.
57 Unlike the standard Unix date/time routines,
59 will parse date/time strings into internal form.
60 The format for specifying date/time strings is pretty loose - basically
61 the same as the format for date/times in network mail.
63 Most of the routines do not use the Unix(R) "clock" time
64 format, and therefore are not limited to dates after 01 January 1970.
65 In particular, twsubtract() lets you subtract two dates without
66 converting them to "clock" form.
73 came from version 6.5 of the MH message
74 handling system, courtesy of Marshall Rose.
75 Some improvements (?) were added by Jef Poskanzer.
77 The return values point to static data whose contents are overwritten
80 The basic Unix time format (clock) only goes back to 1970, limiting
81 applications somewhat.