Skip to content

Add Outlook week numbers #83

@Muffo

Description

@Muffo

This is a great watch-face!

I really like the idea to add the week number because in my office we use it a lot to mark deadlines instead of the day and month.

One thing that I noticed is that the watch-face displays a week number that is different from Outlook (which we use in the company).
According to the watch the current week is 32, but Outlook says that it's 33.

outlook ww

I was looking at the code and I have seen that the week number is calculated using the function strftime: http://man7.org/linux/man-pages/man3/strftime.3.html

       %U     The week number of the current year as a decimal number, range
              00 to 53, starting with the first Sunday as the first day of
              week 01.  See also %V and %W.  (Calculated from tm_yday and
              tm_wday.)

       %V     The ISO 8601 week number (see NOTES) of the current year as a
              decimal number, range 01 to 53, where week 1 is the first week
              that has at least 4 days in the new year.  See also %U and %W.
              (Calculated from tm_year, tm_yday, and tm_wday.)  (SU)

       %W     The week number of the current year as a decimal number, range
              00 to 53, starting with the first Monday as the first day of
              week 01.  (Calculated from tm_yday and tm_wday.)

Currently the watch-face uses %V (ISO standard) but Outlook uses a different format, which is described here: http://stackoverflow.com/a/2202109/556141

Is there any chance to add it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions