On 01/04/2016 09:00 AM, pietersnld wrote:

> Found the same in the source code (7.2)
> 
> /*
>  * Given a Unix date return the week of the year.
>  * The returned value can be 0-53.  Officially
>  * the weeks are numbered from 1 to 53 where week1
>  * is the week in which the first Thursday of the
>  * year occurs (alternatively, the week which contains
>  * the 4th of January).  We return 0, if the week of the
>  * year does not fall in the current year.
>  */
> int tm_woy(time_t stime)
> {
> 
> Think i have to accept an extra differential backup in "week 0". Thanks for
> pointing me to the manual just didn't read the whole part :-(
> (Next time I will check twice if bacula has some exceptions to the
> standards)

Curiously, how does that "alternatively" clause work on Jan 2026?
Is Jan 1 - 3 indeed week 0?

    January 2026
Su Mo Tu We Th Fr Sa
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Later,
-pete

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to