Re: I thought Y2K was over with?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 2 Jan 2010, Benjamin Donnachie wrote:

> 2010/1/2 Gilbert Sebenste <sebenste@xxxxxxxxxxxxxxxxxxxxx>:
>> 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

Ahhhh, that explains it. You are correct! Never mind. Thanks for the 
pointer!

*******************************************************************************
Gilbert Sebenste                                                     ********
(My opinions only!)                                                  ******
*******************************************************************************
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux