Re: bi-monthly steps.

2020-03-27 Thread Christian Hopps
Thanks, and thanks for adding the test and doc updates!

Chris.

> On Mar 26, 2020, at 9:12 PM, Kyle Meyer  wrote:
> 
> Christian Hopps  writes:
> 
>> I've attached an updated patch using "semimonth".
> 
> Applied in 8a99404c8, along with a follow-up commit that adds a test,
> updates the manual, and add a NEWS entry.
> 
> Thanks.
> 




Re: bi-monthly steps.

2020-03-26 Thread Kyle Meyer
Christian Hopps  writes:

> I've attached an updated patch using "semimonth".

Applied in 8a99404c8, along with a follow-up commit that adds a test,
updates the manual, and add a NEWS entry.

Thanks.



Re: bi-monthly steps.

2020-03-26 Thread Christian Hopps
I've attached an updated patch using "semimonth".

Thanks,
Chris.



0001-org-clock.el-add-semimonth-step-for-clocktables.patch
Description: Binary data


Re: bi-monthly steps.

2020-03-13 Thread Peter Neilson

On Fri, 13 Mar 2020 04:01:43 -0400, Michal Politowski  wrote:


Fortnightly :)
Such a useful word.


There are 24 semi-months in a year. There are roughly 26 fortnights.

American English seem to allow the adverb semimonthly but generally avoids  
the

British term fortnightly.

There ought to be an unnecessary book English Made Difficult as a  
companion piece to Carl E. Linderholm's book Mathematics Made Difficult.




On Thu, 12 Mar 2020 18:55:16 -0400, Christian Hopps wrote:

could use semimonth then :)

> On Mar 12, 2020, at 2:15 PM, Nick Dokos  wrote:
>
> "Bi-monthly" is ambiguous: it can mean twice a month or it can mean
> once every two months and there is no convincing anybody that their
> use of it is wrong :-)
>
> --
> Nick
>
> "There are only two hard problems in computer science: cache
> invalidation, naming things, and off-by-one errors." -Martin Fowler




semimonthly steps [Re: bi-monthly steps.]

2020-03-13 Thread Christian Hopps


FWIW the code was actually unambiguous. :)

I meant "semimonthly" or twice a month (i.e., like some people get paid: 
1-15th, 16th-endofmonth).

Thanks,
Chris.

Loris Bennett  writes:


Eric S Fraga  writes:


On Friday, 13 Mar 2020 at 00:47, Peter Neilson wrote:

I think the original question from Christian Hopps presumes the
meaning, "Every two months."


Oh, I took it to mean bi-weekly. ;-)


Exactly.  So "bi-monthly" just means "twice a week".  I'm sure we can all
agree on that :-)




signature.asc
Description: PGP signature


Re: bi-monthly steps.

2020-03-13 Thread Michal Politowski
Fortnightly :)
Such a useful word.

On Thu, 12 Mar 2020 18:55:16 -0400, Christian Hopps wrote:
> could use semimonth then :)
> 
> > On Mar 12, 2020, at 2:15 PM, Nick Dokos  wrote:
> > 
> > "Bi-monthly" is ambiguous: it can mean twice a month or it can mean
> > once every two months and there is no convincing anybody that their
> > use of it is wrong :-)
> > 
> > -- 
> > Nick
> > 
> > "There are only two hard problems in computer science: cache
> > invalidation, naming things, and off-by-one errors." -Martin Fowler

-- 
MichaƂ Politowski
Talking has been known to lead to communication if practiced carelessly.



Re: bi-monthly steps.

2020-03-13 Thread Loris Bennett
Eric S Fraga  writes:

> On Friday, 13 Mar 2020 at 00:47, Peter Neilson wrote:
>> I think the original question from Christian Hopps presumes the
>> meaning, "Every two months."
>
> Oh, I took it to mean bi-weekly. ;-)

Exactly.  So "bi-monthly" just means "twice a week".  I'm sure we can all
agree on that :-)

-- 
This signature is currently under construction.



Re: bi-monthly steps.

2020-03-13 Thread Eric S Fraga
On Friday, 13 Mar 2020 at 00:47, Peter Neilson wrote:
> I think the original question from Christian Hopps presumes the
> meaning, "Every two months."

Oh, I took it to mean bi-weekly. ;-)

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-412-ge18415



Re: bi-monthly steps.

2020-03-12 Thread Peter Neilson

On Thu, 12 Mar 2020 14:15:04 -0400, Nick Dokos  wrote:


"Bi-monthly" is ambiguous: it can mean twice a month or it can mean
once every two months and there is no convincing anybody that their
use of it is wrong :-)


Exactly true. "Bi-weekly" is nearly as ambiguous, but is rescued by an  
ensuing discussion: "Which two days of the week did you want (the event)  
to occur?" "Um, ah, I mean every two weeks." "Fine then, let's say that."


I think the original question from Christian Hopps presumes the meaning,  
"Every two months."




Re: bi-monthly steps.

2020-03-12 Thread Christian Hopps
could use semimonth then :)

> On Mar 12, 2020, at 2:15 PM, Nick Dokos  wrote:
> 
> "Bi-monthly" is ambiguous: it can mean twice a month or it can mean
> once every two months and there is no convincing anybody that their
> use of it is wrong :-)
> 
> -- 
> Nick
> 
> "There are only two hard problems in computer science: cache
> invalidation, naming things, and off-by-one errors." -Martin Fowler
> 
> 




Re: bi-monthly steps.

2020-03-12 Thread Nick Dokos
"Bi-monthly" is ambiguous: it can mean twice a month or it can mean
once every two months and there is no convincing anybody that their
use of it is wrong :-)

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




bi-monthly steps.

2020-03-12 Thread Christian Hopps



I've the need to display bimonthly clock tables, I was able to add this pretty 
easy in case the project would find it useful

--- org-clock.el2020-03-12 06:52:14.0 -0400
+++ /Users/chopps/org-clock.el  2020-03-12 06:51:43.0 -0400
@@ -2719,6 +2719,7 @@
  (pcase step
(`day "Daily report: ")
(`week "Weekly report starting on: ")
+(`bimonth "Bi-Monthly report starting on: ")
(`month "Monthly report starting on: ")
(`year "Annual report starting on: ")
(_ (user-error "Unknown `:step' specification: %S" step
@@ -2768,6 +2769,7 @@
  (let ((offset (if (= dow week-start) 7
  (mod (- week-start dow) 7
(list 0 0 org-extend-today-until (+ d offset) m y)))
+ (`bimonth (list 0 0 0 (if (< d 16) 16 1) (if (< d 16) 
m (1+ m)) y))
 (`month (list 0 0 0 month-start (1+ m) y))
 (`year (list 0 0 org-extend-today-until 1 1 (1+ 
y)))
 (table-begin (line-beginning-position 0))

Thanks,
Chris.


signature.asc
Description: PGP signature