Re: [S] Date Conversion

PT Quants Group Dir (ptquants@nyptsrv1.etsd.ml.com)
Fri, 30 Oct 1998 16:42:54 -0500


Benjamin,

On the money. It works well without worry about Y2K problem. I think it should work with century number too, but I guess Splus will have backward compatiability problem.
Thanks,

S.Y.

> From benjamin@clardy.net Fri Oct 30 10:41:17 1998
> MIME-Version: 1.0
> To: PT Quants Group Dir <ptquants@nyptsrv1.etsd.ml.com>
> Subject: Re: [S] Date Conversion
> Content-Transfer-Encoding: 7bit
>
> The "ymd" informat will not take a 4 digit year, but you can
> use the century argument to overcome this. The century argument
> can either be a single atomic number, or as in this case, a vector
> of century numbers.
>
> mydate <- dates(format="ymd",out.format="ymd"
> ,substring(mydate.txt,3,8)
> ,century=as.numeric(substring(mydate.txt,1,2))*100)
>
>
> Benjamin
>
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news