← Back to team overview

ubuntu-phone team mailing list archive

Re: Today scope week number

 

The first week of the year is the week that contains the first
Thursday of the year, but the week itself starts on the Monday of that
week. In fact, check this out:

for i in 20141228 20141229 20141230 20141231 20150101 20150102; do
date "+%G %V %a %F" -d $i; done
2014 52 Sun 2014-12-28
2015 01 Mon 2014-12-29
2015 01 Tue 2014-12-30
2015 01 Wed 2014-12-31
2015 01 Thu 2015-01-01
2015 01 Fri 2015-01-02

(that's ISO year of the ISO week, the ISO week, the day of the week,
and the date)
The first week of 2015 started on the 29th of December of last 2014.


On 2 December 2015 at 21:16, Dominik Wnęk <dominik@xxxxxxxx> wrote:
> Hi,
>
> I think the Today scope shows the wrong week. At this moment, it's showing
> Dec 2, Wed, Week 49. The year started on a Thursday. My local time is 22:15,
> so I _think_ it shouldn't be Week 49 until midnight.
>
> Or am I reading this wrong?
>
> --
> Dominik Wnęk
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References