Week of the year

2003-11-20 Thread Mark Partous


Hello Bats,

Already asked in TBBETA, but then I realised this was perhaps a more
appropriate list...:

Anyone any idea if there is a (plugin)Macro with which one can reproduce the
week of the year? Or must (if possible) this be done with RegEx?

-- 
Best Wishes,
Mark
using The Bat! 2.01.26




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-20 Thread Januk Aggarwal
Hello Mark,

On Thursday, November 20, 2003 at 20:28 GMT +0100, Mark Partous
pressed random keys until the following was produced:

> Or must (if possible) this be done with RegEx?

As far as I understand it, the plugins can do everything and much more
than a RegExp can.  From the sounds of it, you already have a template
but are looking to simplify it.  Is that correct?

-- 
Thanks for writing,
 Januk Aggarwal




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-22 Thread Carsten Thönges
* Mark Partous <[EMAIL PROTECTED]> writes:
> Saturday, November 22, 2003, 12:10:25 AM, you wrote:

>>> I don't know if there are any other...
>> No yet, But I'll send code to Andrey for next verion's update

> Do you mean code for "Week of the year"?

... and don't forget that there is more than one definition for
»week of the year«. :-/

Carsten
-- 




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-22 Thread Heinz Hombergs
On Saturday, November 22, 2003, 21:26:23 (+0500 GMT) Alexander Leschinsky wrote:

> I know only one - number of week is number of week, and 1.01 always
> start 1-st week

That's not correct. There is an ISO definition.
The week with at last 4 days of the new year are the first week of
this year. So all weeks where the 01.01 between monday and thursday
are the first week of the year. And some years have not 52 weeks, they
have 53 weeks. ;)

-- 
Best regards
 Heinz Hombergs  mailto:[EMAIL PROTECTED]


  
  Member of then OPN developerteam (http://www.openphpnuke.com)
  
  Written with The Bat! Version 2.01.3 under MS Windows XP Professional Service Pack 1 
(build 2600) with help from a Pentium III
  PGP Key: mailto:[EMAIL PROTECTED]
  Fingerprint: 36DE F798 52E2 30A7 F12C 0493 4226 7422 B6E8 E34E




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-22 Thread Peter Palmreuther
Hello Alexander,

On Saturday, November 22, 2003 at 9:26:23 PM you [AL] wrote (at least
in part):

CT>> ... and don't forget that there is more than one definition for
CT>> »week of the year«. :-/
AL> I know only one - number of week is number of week,

That's correct.

AL> and 1.01 always start 1-st week

No. The week that fells January 1st into is first week of the year
(week starting with monday).

>>Today is 327-th day, 48-th week of year 2003

Over here it's 47-th week of the year 2003 A.D.
-- 
Regards
Peter Palmreuther
(The Bat! v2.01.49 on Windows XP 5.1 Build 2600 Service Pack 1)

Boob's Law: You always find something in the last place you look.




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-22 Thread Roelof Otten
Hallo Alexander,

On Sun, 23 Nov 2003 01:26:23 +0500GMT (22-11-03, 21:26 +0100, where I
live), you wrote:

CT>> ... and don't forget that there is more than one definition for
CT>> »week of the year«. :-/
AL> I know only one - number of week is number of week, and 1.01 always
AL> start 1-st week

I read this as should the first of January always start the first
week. According to ISO-8601 this is not true.
When a week has days from different years, the week is counted for the
year that has most days (at least four) in that week, this means that
the week number is computed by counting thursdays.

>>Today is 327-th day, 48-th week of year 2003

You wrote your message on Sunday, so it is the 327th day. However it's
week 47, I don't where you go amiss, but according to ISO-8601 the
week starts at Monday and ends with a Sunday.

-- 
Groetjes, Roelof




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-22 Thread Peter Palmreuther
Hello Ingrid,

On Sunday, November 23, 2003 at 12:34:03 AM you [PP] wrote (at least
in part):

PP> The week that fells
  ^
  I shouldn't drink and d^hwrite :-/

"falls", like "to fall" I intended to express :-/
-- 
Regards
Peter Palmreuther
(The Bat! v2.01.49 on Windows XP 5.1 Build 2600 Service Pack 1)

Freedom OF religion includes freedom FROM religion.




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-23 Thread Dierk Haasis
Hello Alexander!

On Sunday, November 23, 2003 at 1:33:33 AM you wrote:

> But 1-st January _is_ in week number 1?

No. As has been pointed out there are at least two different
definitions:

1. The week with the first of January in it is Week 1.

2. ISO says, the first week containing at least four January days is
the first week of the year.

The second def - now standard - allows the 1st, 2nd and 3rd January to
be in the 53rd week of the year, hence the last days of the year
before.




-- 
Dierk Haasis

The Bat 2.01.49 on Windows XP 5.1 2600Service Pack 1

Cynic: A blackguard whose faulty vision sees things as they are, not
as they ought to be. (Ambrose Bierce)






http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-23 Thread Peter Palmreuther
Hello Alexander,

On Sunday, November 23, 2003 at 4:33:07 PM you [AL] wrote (at least in
part):

DH>> The second def - now standard - allows the 1st, 2nd and 3rd January to
DH>> be in the 53rd week of the year, hence the last days of the year
DH>> before.
AL> But according ISO, 1-st Jan 2003 was in week 1, thus - I can't grok, why
AL> current week must be 47-th

Take a calendar (even Windows build in calendar will do it) and count
weeks. One by one. You'll end up at 47 when you hit current week. I
just did.
-- 
Regards
Peter Palmreuther
(The Bat! v2.01.49 on Windows XP 5.1 Build 2600 Service Pack 1)

"There are a lot of lies going around and half of them are true."




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-24 Thread Mark Wieder
Mark-

Sunday, November 23, 2003, 2:33:12 PM, you wrote:

MP> Seems I started something off. I hadn't thought of the possible

Nontheless, my thanks for starting this off. I never thought there
would end up being a 53rd week in the year, or that 1 January could
end up being in anything other than the first week. Fascinating stuff.
And I *have* done a fair amount of calendar calculations for different
system conversions, lunar cycles, etc.

...and surprisingly enough, it's still all OT.

-- 
-Mark Wieder
 Using The Bat! v1.63 Beta/7 on Windows 2000 5.0 Build 2195 Service Pack 4




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-26 Thread Guy Platt
Interesting thread this. Made me realise that it would be nice to have 
TclockEx show the week of the year. Here in Sweden everyone makes plans 
based on the WOTY.

Does anyone have a freeware / shareware utility which could replace 
TclockEx  and display WOTY?

Mark Partous penned the following on 11/23/2003 11:33 PM:

Seems I started something off. I hadn't thought of the possible
interpretations of what is the first week of the year. I see the number in my
TclockEx, or on my calendar, and that's about it. 
 



http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Week of the year

2003-11-26 Thread Guy Platt
Scratch that ... I found the option in TclockEx to display the week :)

Guy Platt penned the following on 11/26/2003 10:19 PM:

Interesting thread this. Made me realise that it would be nice to have 
TclockEx show the week of the year. Here in Sweden everyone makes 
plans based on the WOTY.

Does anyone have a freeware / shareware utility which could replace 
TclockEx  and display WOTY?



http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-20 Thread Mark Partous
Hello Januk,

Thursday, November 20, 2003, 9:12:31 PM, you wrote:

JA> As far as I understand it, the plugins can do everything and much more
JA> than a RegExp can.  From the sounds of it, you already have a template
JA> but are looking to simplify it.  Is that correct?

Ehm...No...
Every week I'm sending some sort of agenda. I've made a QT and wanted to be
able to automatically add the week's number in the subject with
%SUBJECT="Agenda, for week .. in .pdf and .txt format"%-

The only plugins that are installed are MyMacros 1.07 an ajs Macros 0.6/5.6
I don't know if there are any other...

-- 
Best Wishes,
Mark
using The Bat! 2.01.26





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[3]: Week of the year

2003-11-21 Thread Alexander Leschinsky
Hello Mark,

   On Thu, 20 Nov 2003 22:40:09 +0100 (21.11.2003 02:40 my local time)
   you wrote about "Week of the year"
   at least in part:

MP> I don't know if there are any other...
No yet, But I'll send code to Andrey for next verion's update
-- 
Best regards,
 Alexander Leschinsky

- MOTD:
Never do anything when you are in a temper, for you will do everything wrong.
Baltasar Gracian





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[4]: Week of the year

2003-11-22 Thread Mark Partous
Hello Alexander,

Saturday, November 22, 2003, 12:10:25 AM, you wrote:

MP>> I don't know if there are any other...
AL> No yet, But I'll send code to Andrey for next verion's update

Do you mean code for "Week of the year"?

-- 
Best Wishes,
Mark
using The Bat! 2.01.26





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[5]: Week of the year

2003-11-22 Thread Alexander Leschinsky
Hello Mark,

   On Sat, 22 Nov 2003 13:55:37 +0100 (22.11.2003 17:55 my local time)
   you wrote about "Week of the year"
   at least in part:

MP> Do you mean code for "Week of the year"?
Yes, really I wrote two macros - WeekOfYear and DayOfYear and prepared
(while they aren't added to MyMacros) separate plugin

AnotherMacros available on request
-- 
Best regards,
 Alexander Leschinsky

- MOTD:
There's only one way to have a happy marriage and as soon as I learn what it is I'll 
get married again.
Clint Eastwood





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-22 Thread Alexander Leschinsky
Hello Carsten,

   On Sat, 22 Nov 2003 14:26:48 +0100 (22.11.2003 18:26 my local time)
   you wrote about "Week of the year"
   at least in part:

CT> ... and don't forget that there is more than one definition for
CT> »week of the year«. :-/
I know only one - number of week is number of week, and 1.01 always
start 1-st week

>Today is 327-th day, 48-th week of year 2003

-- 
Best regards,
 Alexander Leschinsky

- MOTD:
Until you walk a mile in another man's moccasins you can't imagine the smell.
Robert Byrne





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[3]: Week of the year

2003-11-22 Thread Peter Ouwehand
Hello Alexander Leschinsky,

on Sun, 23 Nov 2003 01:26:23 +0500 (2003-11-22 21:26:23 in .nl) in the
message with reference 
you wrote (at least in part):

AL> I know only one - number of week is number of week, and 1.01 always
AL> start 1-st week

ISO-8601 download links on:
http://www.astroclark.freeserve.co.uk/iso8601/index.htm

The Mathematics of the ISO 8601 Calendar on:
http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm

-- 
Kind regards,
Peter Ouwehand
E: [EMAIL PROTECTED]
- - -
Created the above using
A program which insists to be : The Bat! V2.01.26
An OS which insists to be : Windows 2000 5.0 Build 2195 Service Pack 4





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-22 Thread Alexander Leschinsky
Hello Roelof,

   On Sun, 23 Nov 2003 00:44:40 +0100 (23.11.2003 04:44 my local time)
   you wrote about "Week of the year"
   at least in part:

RO> I read this as should the first of January always start the first
RO> week. According to ISO-8601 this is not true.
Okay, okay

I can add %ISOWEEKOFYEAR for purists


RO> You wrote your message on Sunday, so it is the 327th day. However it's
RO> week 47, I don't where you go amiss, but according to ISO-8601 the
RO> week starts at Monday and ends with a Sunday.
Well, but

%WEEKOFYEAR("1.1.2005")   1
%WEEKOFYEAR("1.1.2003")   1

Is it true for

Third day
and
Thigh day
of the week for 1-st January?
-- 
Best regards,
 Alexander Leschinsky

- MOTD:
Know the true value of time; snatch, seize, and enjoy every moment of it. No idleness; 
no laziness; no procrastination; never put off till tomorrow what you can do today.
Lord Chesterfield





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-22 Thread Alexander Leschinsky
Hello Peter,

   On Sun, 23 Nov 2003 00:34:03 +0100 (23.11.2003 04:34 my local time)
   you wrote about "Week of the year"
   at least in part:

PP> No. The week that fells January 1st into is first week of the year
PP> (week starting with monday).
But 1-st January _is_ in week number 1?

>>>Today is 327-th day, 48-th week of year 2003

PP> Over here it's 47-th week of the year 2003 A.D.
Why???
-- 
Best regards,
 Alexander Leschinsky

- MOTD:
It is only possible to live happily ever after on a day-to-day basis.
Margaret Bonnano





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-22 Thread Alexander Leschinsky
Hello Heinz,

   On Sun, 23 Nov 2003 00:33:39 +0100 (23.11.2003 04:33 my local time)
   you wrote about "Week of the year"
   at least in part:

HH> So all weeks where the 01.01 between monday and thursday are the
HH> first week of the year.
But what is the number of week for 01 Jan after Thursday?

%WEEKOFYEAR("31.12.2005")
%WEEKOFYEAR("31.12.2003")

produce now
1
53

in my code now, %WEEKOFYEAR("1.1.2006") - 1

52
52
53
53
53
53

for
%WEEKOFYEAR("26.12.2003")
%WEEKOFYEAR("27.12.2003")
%WEEKOFYEAR("28.12.2003")
%WEEKOFYEAR("29.12.2003")
%WEEKOFYEAR("30.12.2003")
%WEEKOFYEAR("31.12.2003")

-- 
Best regards,
 Alexander Leschinsky

- MOTD:
I said to my girl, 'Was it good for you too?' And she said, 'I don't think this was 
good for anybody.'
Gary Shandling





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[4]: Week of the year

2003-11-23 Thread Alexander Leschinsky
Hello Peter,

   On Sun, 23 Nov 2003 01:42:04 +0100 (23.11.2003 05:42 my local time)
   you wrote about "Week of the year"
   at least in part:

PO> The Mathematics of the ISO 8601 Calendar
Good, I'll implement ISOWeek on this base
-- 
Best regards,
 Alexander Leschinsky

- MOTD:
For NASA, space is still a high priority.
Dan Quayle, 9/5/90





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-23 Thread Alexander Leschinsky
Hello Dierk,

   On Sun, 23 Nov 2003 09:41:36 +0100 (23.11.2003 13:41 my local time)
   you wrote about "Week of the year"
   at least in part:

DH> The second def - now standard - allows the 1st, 2nd and 3rd January to
DH> be in the 53rd week of the year, hence the last days of the year
DH> before.
But according ISO, 1-st Jan 2003 was in week 1, thus - I can't grok, why
current week must be 47-th

-- 
Best regards,
 Alexander Leschinsky

- MOTD:
Laugh and the world laughs with you, snore and you sleep alone.
Anthony Burgess





http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Week of the year

2003-11-23 Thread Mark Partous
Hello Carsten,

Saturday, November 22, 2003, 2:26:48 PM, you wrote:


>> Do you mean code for "Week of the year"?

CT> ... and don't forget that there is more than one definition for
CT> »week of the year«. :-/

Seems I started something off. I hadn't thought of the possible
interpretations of what is the first week of the year. I see the number in my
TclockEx, or on my calendar, and that's about it. No questions occured in my
head as far as the WOTY was concerned.

I thought you were referring to other era's (arab/hebrew/chinese/...), not to
mention a "week of the year" as in "car of the year" :-)


-- 
Best Wishes,
Mark
using The Bat! 2.01.26





http://www.silverstones.com/thebat/TBUDLInfo.html


Mod: Top posting (was: Week of the year)

2003-11-26 Thread Marck D Pearlstone
Hi Guy,

@26-Nov-2003, 22:19 +0100 (26-Nov 21:19 UK time) Guy Platt said:

> Does anyone have a freeware / shareware utility which could
> replace TclockEx  and display WOTY?


Note: This moderator's interjection is a note to all readers and not
just to the person being replied to, even if their post may have
instigated this reply. Please don't feel singled out Guy.

This posting violated the list rules regarding top posting.

Top posting, i.e., typing all your reply text at the top of your
message and following it with all quoted text below, is not
encouraged and we actually request that you not do so on this list
because 

a) It makes it difficult to glean context from what you typed at the
   top of the message

and

b) It encourages excessive quoting.

We would much prefer if you quote just that much of the message to
which you're replying, so we know what it is you're referring to,
and then below the quotation, type your response. If you're
responding to more than one part of the original, then quote each
part separately and follow each part with your response.

Now, I know that you may not personally prefer this format and that
you may disagree with some of the reasoning here. We very much
respect this. However, this is the format that most of the active
members here prefer and all members are expected, and are being
asked to use the format that will make most of the active membership
here comfortable reading. You'll likely get a more responsive group
when you post using a style that is comfortable for them to read and
understand.

... and ...

Please include a signature delimiter in your messages. This consists
of a , i.e., a '-- ' by itself on a line.
This allows your readers, when replying, to quote your text without
the signature and list footers since everything below and including
the sig delimiter is excluded when quoting. 

You can easily automate this process by including the sig delimiter
in your templates.

Thank you.


-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.01.50 on Windows XP 5.1.2600 Service Pack 1
'

http://www.silverstones.com/thebat/TBUDLInfo.html