Apparently not. On a command line, type: date '+%G' First Spamassassin's bug (now fixed, type "sa-update" as user root), and now this... ******************************************************************************* Gilbert Sebenste ******** (My opinions only!) ****** *******************************************************************************
2010/1/2 Gilbert Sebenste <sebenste at weather.admin.niu.edu>:> Apparently not. On a command line, type: > date '+%G'Looks perfectly correct to me - from man strftime %G is replaced by a year as a decimal number with century. This year is the one that contains the greater part of the week (Monday as the first day of the week). Maybe you want %Y? %Y is replaced by the year with century as a decimal number. Ben
On Sat, Jan 02, 2010 at 04:44:38PM -0600, Gilbert Sebenste wrote:> Apparently not. On a command line, type: > > date '+%G'This is, I believe, correct. We're in ISO week 53 of year 2009 % date +"%V %G -- %c" 53 2009 -- Sat Jan 2 18:29:48 2010 % date +"%V %G -- %c" -d "today + 1 day" 53 2009 -- Sun Jan 3 18:29:59 2010 % date +"%V %G -- %c" -d "today + 2 days" 01 2010 -- Mon Jan 4 18:30:06 2010 -- rgds Stephen