Path: utzoo!attcan!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!news.funet.fi!hydra!cc.helsinki.fi!wirzenius From: wirzenius@cc.helsinki.fi (Lars Wirzenius) Newsgroups: comp.lang.c Subject: Re: need "yy-ddd-hh:mm:ss ==> (time_t) clock" converter Message-ID: <1991Feb27.013021.5178@cc.helsinki.fi> Date: 27 Feb 91 01:30:21 GMT References: <368@bria> Distribution: comp Organization: University of Helsinki Lines: 18 In article , enag@ifi.uio.no (Erik Naggum) writes: [ A Unix shell script and a GNU Emacs lisp-routine that generate a table with cumulative counts from the beginning of the year deleted ] Ok, suppose you want to have the cumulative counts, but don't run either Unix nor GNU Emacs? You use the compiler: int cumulative_yday[] = { 0, /* days before Jan 1st */ 0+31, /* Feb 1st */ 0+31+28, /* March 1st */ 0+31+28+31, /* April 1st */ ... }; Or is there anything I miss? -- Lars Wirzenius wirzenius@cc.helsinki.fi