jwp@larry.sal.wisc.edu (Jeffrey W Percival) (10/03/89)
I have a date string, of the form yymmddhhmmss.ss How do I convert this into the number of seconds since the Unix epoch? In other words, gettimeofday(2) gives me the *current* time in elapsed seconds... I want the number of elapsed seconds represented by my date string. date(1) does this, but I don't have source. TFM doesn't seem to cover this. -- Jeff Percival (jwp@larry.sal.wisc.edu)
skwu@boulder.Colorado.EDU (WU SHI-KUEI) (10/04/89)
In article <738@larry.sal.wisc.edu> jwp@larry.sal.wisc.edu (Jeffrey W Percival) writes: >I have a date string, of the form yymmddhhmmss.ss > >How do I convert this into the number of seconds since the Unix epoch? See pages 49-52 of Marc Rochkind's ADVANCED UNIX PROGRAMMING