Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!rochester!kodak!gizzmo!lazlo!galaxia!rayssdb!rayssd!jarsun1!drd!mark From: mark@drd.UUCP (Mark Lawrence) Newsgroups: comp.unix.questions Subject: ASCII-->internal time Keywords: ctime time conversion Message-ID: <561@drd.UUCP> Date: 9 Jun 89 15:00:33 GMT Reply-To: lawrence@tusun2.knet.UTulsa.Edu (Mark Lawrence) Organization: DRD Corporation, Tulsa, OK (would you believe so-so?) Lines: 19 I've recently been considering what to use for an internal format for date/time stamps. The system I'm am developing receives date/time stamped records from an external source. The stamp is in a consistent ascii format. I've been reviewing ctime, et al and note that they are good for converting UNIX internal time format into ascii and struct tm but don't provide a way to convert from ascii or struct tm back to UNIX internal format. I don't see a cousin which has that functionality in the man pages, either. Am I missing something here? I'd like to be able to pick apart the stamp on the data, plug it into a variable of type struct tm and then have it womped into UNIX internal format (for storage efficiency). -- Hierarchical Earthers: lawrence@tusun2.knet.UTulsa.Edu Flat Earthers: {...uunet!apctrc,...rutgers!okstate!romed}!drd!mark Emailophobes: (918) 743-3013