[PATCH 0/4] Add VACATION :seconds support

Greg Banks gnb at fastmail.fm
Tue May 8 22:08:53 EDT 2012


On Tue, May 8, 2012, at 01:52 PM, Bron Gondwana wrote:
> 
> 
> On Tue, May 8, 2012, at 01:50 PM, Philipp Hahn wrote:
> > Hello,
> > 
> > Am Dienstag 08 Mai 2012 13:07:04 schrieb Bron Gondwana:
> > > On Tue, May 8, 2012, at 11:54 AM, Philipp Hahn wrote:
> > > > For converting days to seconds and the inverse I always explicitly wrote
> > > > 24 * 60 * 60. Is there a good location for defining this as a macro?
> > >
> > > lib/util.h ?
> > 
> > Will take a look. Would the following be fine:
> > #define DAY2SEC(x) ((x) * 24 * 60 * 60)
> > Or is there a more preferrable name?
> 
> That's clear.  I'm fine with it.

There's a lib/times.h which has a significant part of the other time
handling declarations in it.

-- 
Greg.


More information about the Cyrus-devel mailing list