At this time
>date
Mon Dec 29 02:23:36 CET 2003
%G format gives the year 2004:
>date +%G
2004
It didn't do so yesterday.
>date --version
date (coreutils) 4.5.3
Written by David MacKenzie.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Regards,
--
Carlo Wood <address@hidden>