Page 1 of 1

Week Number

PostPosted: Thu Apr 21, 2016 7:17 am
by MarkNethercott
Which Week Number 'system' does Hazel use.

According to Excel's help there are two 'systems' - looking on the web, there seem to be several...

System 1 The week containing January 1 is the first week of the year, and is numbered week 1.

System 2 The week containing the first Thursday of the year is the first week of the year, and is numbered as week 1. This system is the methodology specified in ISO 8601, which is commonly known as the European week numbering system.

It looks like Hazel uses 'System 1' and counts the week with January 1st in it as week 1, but could someone confirm this and if there's a way to control how Hazel counts week numbers?

--
Best regards


Mark

Re: Week Number

PostPosted: Thu Apr 21, 2016 10:46 am
by Mr_Noodle
I believe Hazel uses the first option. It basically uses what OS X's APIs provide in this case and looking at it, I don't see an option for the ISO version. I suspect you'll need a script to do that.

Re: Week Number

PostPosted: Sun Apr 24, 2016 1:08 pm
by MarkNethercott
Thank you.

It looks like you can choose ISO 8601 as the system calendar (http://goo.gl/ANIRxP), but I couldn't find any documentation to determine if this affects the API calls (i.e. what the underlying system reports)

--
Best regards


Mark

Re: Week Number

PostPosted: Sun Apr 24, 2016 1:28 pm
by MarkNethercott
Though I'm confused as the standard Apple calendar app shows the 23nd April (for example) as being in week 16, but Hazel thinks it is in week 17.

Re: Week Number

PostPosted: Mon Apr 25, 2016 10:40 am
by Mr_Noodle
I'll take a look at that. It might be that Hazel is still not observing the calendar value.

Re: Week Number

PostPosted: Mon Apr 25, 2016 12:19 pm
by Mr_Noodle
Ok, took a closer look. In order to work around an Apple mis-feature in the APIs, Hazel sets the region to a "neutral" one. This also ends up overriding the calendar.

I'll look into maybe preserving/resetting the calendar in this case but need to test out the effect on things. Should be fixed in a future release, hopefully.

Re: Week Number

PostPosted: Sun May 29, 2016 6:02 pm
by deeks
Mr_Noodle wrote:Ok, took a closer look. In order to work around an Apple mis-feature in the APIs, Hazel sets the region to a "neutral" one. This also ends up overriding the calendar.

I'll look into maybe preserving/resetting the calendar in this case but need to test out the effect on things. Should be fixed in a future release, hopefully.


Hi all,

Be interested to see a fix as I do use the European week numering system as well. I have been tinkering with deducting days in the adjust option. Without luck so far. Maybe as a quick fix Mr. Noodle could get Hazel to deduct one weeknumber in the adjusting options?

Cheers,
Deeks

Re: Week Number

PostPosted: Mon May 30, 2016 11:26 am
by Mr_Noodle
As it looks now, the fix should be in the next patch. Note that if you want iso8601 handling of dates, you will need to set your system calendar to that, which may affect other parts of the system.

Re: Week Number

PostPosted: Mon May 30, 2016 5:01 pm
by deeks
That sounds great, it would be interesting to see if the patch resolves my issue. Any thoughts on an ETA?

As for your concerns about other applications that could be affected by switching to ISO, any examples in particular?

Many thanks for getting back,
Deeks

Re: Week Number

PostPosted: Tue May 31, 2016 11:00 am
by Mr_Noodle
ETA is hopefully this week but there are some other issues I'm waiting for resolution on so it could be delayed.

I don't know of anything else in specifically that might be affected. I just mention it as changing the calendar is a system-wide setting so it's hard to say how that would affect things.

Re: Week Number

PostPosted: Sun Jun 12, 2016 4:38 pm
by deeks
hi Mr. Noodle,

Thanks for the update - just a thank you for your support and the latest release. My gripe with the week number is fixed. Its working fine with ISO settings!

Thumbs up!