Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!xanth!cs.odu.edu!tadguy From: tadguy@cs.odu.edu (Tad Guy) Newsgroups: comp.sources.wanted Subject: Re: Convert MM/DD/YY HH:MM to long?? Summary: getdate.y and getdate.3 come with B News 2.11 Message-ID: <6828@xanth.cs.odu.edu> Date: 13 Dec 88 23:58:07 GMT References: <1059@bcd-dyn.UUCP> <17800003@ugun21> Sender: news@xanth.cs.odu.edu Reply-To: tadguy@cs.odu.edu (Tad Guy) Organization: Old Dominion University, Norfolk, VA Lines: 17 In-reply-to: josef@ugun21.UUCP In article <17800003@ugun21>, josef@ugun21 writes: >>I'm looking for a function to convert a "broken down" time (ie, day, month, >>year, hour, min format) to a long compatible with the time function call. >>Does anyone have such a beast? Thanks. -Scott > >I would be interested as well... If you're running B News 2.10 or 2.11 (as opposed to Notefiles or C News or whatever), you already have what you're looking for. In your B News source, you should find ``getdate.y'', which (after being yacc'ed and compiled) takes a character pointer and converts it to a long, suitable for use with ctime(3), etc. It understand various input formats. There's even a manual page provided (``getdate.3'') ...tad -- Tad Guy Old Dominion University, Norfolk, VA