🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #3420

VAX C date-time routines question

#3420
From: Lloyd Chalfant
Date: Wed, 03 Apr 1991 16:15
26 lines
1600 bytes
I've been tasked to look into date-time manipulation routines available
on VAX C.  

What I have found: time, ftime, ctime, asctime, difftime, clock, 
                   localtime, gmtime.

What is not available on my VAX C compiler: mktime, strftime.

My question is - the "time" routine can get the current time and I can
                 further break that down using "localtime", but how do
                 I convert a time residing in a string, e.g., "May 12, 1991"
                 into an internal representation?  There does not seem to
                 be any routines taking STRINGs and going "backward" to
                 an internal time, and for some reason "mktime", which
                 takes a broken down (into a struct) time and converts it
                 to an internal representation (number of seconds since
                 Jan 1, 1970), is not included in my run-time library.
                 
Please excuse my general ignorance about C (it is new to me).  How do
other people deal with formatted time conversions?  

Thanks.
--

 Lloyd Chalfant - These opinions are borrowed so be nice to them!
Technical Details
Message-ID: <LAC.91Apr3101500@io.titan.tsd.arlut.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!titan!lac

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!titan!lac
From: lac@titan.tsd.arlut.utexas.edu (Lloyd Chalfant)
Newsgroups: comp.sys.dec
Subject: VAX C date-time routines question
Message-ID: <LAC.91Apr3101500@io.titan.tsd.arlut.utexas.edu>
Date: 3 Apr 91 16:15:00 GMT
Sender: news@titan.tsd.arlut.utexas.edu
Distribution: comp
Organization: Applied Research Laboratories, University of Texas at Austin.
Lines: 26