Re: [optimization] calendar week ISO 8601 / DIN 1355

2010-03-30 Thread Robert Cole

Malte and Sarah:
This should work for people who have PHP installed:
 on mouseUp
put "php -r " & quote & "echo date('W',  
mktime(0,0,0,3,15,2010));" & quote into tPHPcommand

put shell(tPHPcommand) into field "Test Results"
 end mouseUp
FYI,
Bob

On Mon, 29 Mar 2010 07:36:33 Sarah Reichelt   
wrote:


I haven't checked out your function yet Malte, but my DateTime library

has a weekNumISO() function contributed by the late, great Eric  
Chatonet.


Cheers,
Sarah

On Mon, Mar 29, 2010 at 6:52 AM, Malte Pfaff-Brill > wrote:

Hi all,
I needed to calculate the calendar week from a given date (as we do  
it in germany and I think also in the rest of europe).
I quickly hacked together a function implementing some of the info  
found here: http://en.wikipedia.org/wiki/ISO_8601#Week_dates
If anyone has any pointers on how to make this better, I´d  
appreciate input. I hope if anyone needs to implement calendar weeks

later this might be a helpful thread.

Cheers,

Malte


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [optimization] calendar week ISO 8601 / DIN 1355

2010-03-28 Thread Sarah Reichelt
On Mon, Mar 29, 2010 at 8:00 AM, Malte Pfaff-Brill
 wrote:
> Thanks for pointing me to your lib Sarah. Lots of useful stuff in there. If 
> only gems like these were a little easier to find. *sigh*

I'm terrible at putting things on RevOnline - I have a publishing
system set up for my own site so it's easy, but RevOnline seems to be
problematic.
I would love it if RevOnline allowed you to publish links instead of
complete stacks - that way I could create a link to a stack on my
site, and any updates would only have to be done in one place.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [optimization] calendar week ISO 8601 / DIN 1355

2010-03-28 Thread Malte Pfaff-Brill
Thanks for pointing me to your lib Sarah. Lots of useful stuff in there. If 
only gems like these were a little easier to find. *sigh*

Cheers,

Malte


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [optimization] calendar week ISO 8601 / DIN 1355

2010-03-28 Thread Sarah Reichelt
I haven't checked out your function yet Malte, but my DateTime library

has a weekNumISO() function contributed by the late, great Eric Chatonet.

Cheers,
Sarah


On Mon, Mar 29, 2010 at 6:52 AM, Malte Pfaff-Brill
 wrote:
> Hi all,
> I needed to calculate the calendar week from a given date (as we do it in 
> germany and I think also in the rest of europe).
> I quickly hacked together a function implementing some of the info found 
> here: http://en.wikipedia.org/wiki/ISO_8601#Week_dates
> If anyone has any pointers on how to make this better, I´d appreciate input. 
> I hope if anyone needs to implement calendar weeks
> later this might be a helpful thread.
>
> Cheers,
>
> Malte
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution