Re: [O] Convert from date to week number, howto?

2012-02-11 Thread François Pinard
François Pinard pin...@iro.umontreal.ca wrote: I sometimes have to convert from a date to a week number Nick Dokos nicholas.do...@hp.com writes: org-days-to-iso-week Jambunathan K kjambunat...@gmail.com writes: (org-odt-format-date 2011-12-31 Sat %U) (org-odt-format-date [2011-12-24 Sat]

Re: [O] Convert from date to week number, howto?

2012-02-03 Thread Georges Ko
Jambunathan K kjambunat...@gmail.com writes: I sometimes have to convert from a date to a week number, Try this. (org-odt-format-date 2011-12-31 Sat %U) (org-odt-format-date [2011-12-24 Sat] %U) You can steal the implementation. The functions have nothing to do with org-odt, btw.

[O] Convert from date to week number, howto?

2012-02-02 Thread François Pinard
Hi, Orger friends :-) I sometimes have to convert from a date to a week number, for when I am shift-arrowing a clock table summarizing weeks. It was easy at the beginning of the year, but I see it requires more thought as year advance. I can write little programs to do so, but I wonder if

Re: [O] Convert from date to week number, howto?

2012-02-02 Thread Nick Dokos
François Pinard pin...@iro.umontreal.ca wrote: Hi, Orger friends :-) I sometimes have to convert from a date to a week number, for when I am shift-arrowing a clock table summarizing weeks. It was easy at the beginning of the year, but I see it requires more thought as year advance. I can

Re: [O] Convert from date to week number, howto?

2012-02-02 Thread Jambunathan K
I sometimes have to convert from a date to a week number, Try this. (org-odt-format-date 2011-12-31 Sat %U) (org-odt-format-date [2011-12-24 Sat] %U) You can steal the implementation. The functions have nothing to do with org-odt, btw. --