opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cyrus-devel@lists.andrew.cmu.edu 9 May 2012 • 10:08AM -0400

Re: [PATCH 0/4] Add VACATION :seconds support
by Greg Banks

REPLY TO AUTHOR
 
REPLY TO GROUP





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.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.