dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #02430
Re: Define week start day for Weekly periods
Weeks are as we all know something of a headache. What we have defined
currently in DHIS2, as Jason points out, is the ISO standard week, which
even itself is something of a headache.
I suspect that to incorporate all the variety which is called for
(Wednesday week starts is the most exotic I've seen to date! But there are
also Islamic calendar issues, Ethiopian/Amharic calendar, Monday vs Sunday
starts etc) we might need to zoom right out to define a generic repeating
period with rules around starting and stopping. But it could get quite
complicated. Two immediate issues which come to mind
(i) we need a string representation of periods. So 2010W23 has a
particular meaning in terms of the ISO week number. How to differentiate
this from a week which starts on a Wednesday (and which day of the year
would be day 1 of week 1?);
(ii) how to aggregate along the time axis ie, weeks->months->years
Its something which needs to be done, but I am not at all clear what the
correct design approach would be. Would be interested to hear people's
thoughts.
Bob
On 14 June 2013 17:12, Knut Staring <knutst@xxxxxxxxx> wrote:
> Devs: Is this something which could be targeted for 2.13?
>
> Knut
>
>
> On Mon, May 13, 2013 at 6:18 PM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> Currently not. This has come up before, but for now, ISO weeks are what
>> has been implemented.
>>
>> http://en.wikipedia.org/wiki/ISO_week_date
>>
>> Regards,
>> Jason
>>
>>
>>
>> On Mon, May 13, 2013 at 6:54 PM, Paulo Grácio <
>> pgracio@xxxxxxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi, ****
>>>
>>> ** **
>>>
>>> Is there a way to define week start day for Weekly periods?****
>>>
>>> ** **
>>>
>>> Regards,****
>>>
>>> Paulo Grácio****
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> +4791880522
> http://dhis2.org
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References