FWIW,
In Beancount I've decided to just choose (inclusive begin, exclusive end)
everywhere. The user just has to specify the dates accordingly.
I find it less confusing to avoid the extra complexity and impose a single 
method.

Also, assertions are taken to mean "at midnight at the beginning of that date"
and not at the end, though I have found myself in the past wanting an
"end of date" assertion, in practice, I just changed my dates.



On Fri, Jul 26, 2013, at 14:31, jonbobbly wrote:
> Has this been decided? I'm trying to write a script that runs the following 
> two reports: The first show the balances of income and expenses for today, 
> the second shows the balances of assets and liabilities ending on, and 
> including, today. The --end command as of version 3.0.0-20110325 is 
> definitely *not* inclusive. As the result for --end today will not show any 
> postings for today.
> 
> On Wednesday, January 21, 2009 5:53:20 PM UTC-6, John Wiegley wrote:
> >
> > On Dec 30, 2008, at 1:08 PM, [email protected] <javascript:> wrote:
> >
> > > I take the -b part to say that entries on or after the specified date
> > > will be included, but the "Only entries on or after that date will be
> > > calculated" is a bit confusing: I presume you mean that you'll report
> > > the entries for that date, but running calculations start with 0 on  
> > > that
> > > date (reg report) and the _calculations_ start later.
> > >
> > > I take the -e part to say either that entries on or after that date  
> > > will
> > > not be considered or that the ending date is inclusive, which tells me
> > > that that date will be included.
> > >
> > > IOW, it selects either [b,e] or [b,e), and I can't tell which, and I
> > > could see (b,e] or (b,e) as possibly correct.
> >
> > You know what, I'm still not totally clear on how -b and -e should  
> > behave.  Sometimes i want [b,e] and other times I want [b,e).
> >
> > I think at some point we discussed using -e vs. -E to specify  
> > inclusive vs. exclusive.  The -E case would be inclusive, and -e would  
> > be exclusive.
> >
> > After all, if I say: -b jan -e feb, do I want to see February too, or  
> > just January?  But when giving specific dates, like -b 2001/01/01 -e  
> > 2001/01/31, I think people would expect it to be inclusive.
> >
> > Confusing!
> >
> > As for the calculation part, using the balance start out as zero on  
> > the -b date.
> >
> > John
> >
> >
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to