> From: Martin Phillips
> 
> The algorithm for ISO week numbers (which seems like a widely 
> used standard) can be found at 
> http://personal.ecu.edu/mccartyr/ISOwdALG.txt


I don't think I've ever given this even a moment's thought.

HPUX `man date` says it recognizes:

  %U   Week number of the year (Sunday as the first day of the
       week) as a two-digit decimal number [00-53].  All days that
       precede the first Sunday in the year are considered to be in
       week 00. 
  %V   Week number of the year (Monday as the first day of the
       week) as a two-digit decimal number [01-53].  If the week
       containing January 1 has four or more days in the new year
       (January 1 is Thursday or sooner), it is designated as week
       01; otherwise, (January 1 is Friday or later), it is
       designated as the last week of the previous year, and the
       next week is week 01.
  %W   Week number of the year (Monday as the first day of the
       week) as a two-digit decimal number [00-53].  All days that
       precede the first Monday in the year are considered to be in
       week 00.

Looks like %V matches up with ISO, per MP's url:

  ISO 8601 specifies that Week 01 of the year is the week containing
  the first Thursday; Monday is Weekday 1, Sunday is Weekday 7;
  WeekNumber requires two digits (W01, W02, etc.; "W" is optional)


Now I've given it a moment's thought.
cds
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to