From Friedrich.Leisch@ci.tuwien.ac.at  Thu Aug 19 09:48:18 1999
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Thu, 19 Aug 1999 10:48:18 +0200 (CEST)
Subject: date() should not append a final "\n" ?!?
In-Reply-To: <199908190845.KAA24041@sophie.ethz.ch>
References: <199908190845.KAA24041@sophie.ethz.ch>
Message-ID: <14267.50386.581977.851244@galadriel.ci.tuwien.ac.at>

>>>>> On Thu, 19 Aug 1999 10:45:35 +0200,
>>>>> Martin Maechler (MM) wrote:

MM> Between R 0.63.2 and 0.64, the behavior of 
MM>   date()
MM> has been changed in order to become platform independent.
MM> It now uses POSIX calls, basically

MM>     time_t t;
MM>     time(&t);
MM>     return ctime(&t);


MM> This currently returns (for me on Sun SPARC Solaris)

>> date()
MM>   [1] "Thu Aug 19 10:36:28 1999\n"

MM> where I think the final "\n" is really UNdesired.

Yes!


MM> ---
MM> Is this just my (Sun's) version of ctime(), i.e.,
MM> does anyone *NOT* get the final new line ?


Debian Linux:

R> date()
[1] "Thu Aug 19 10:47:17 1999\n"


.f
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


date() should not append a final "\n" ?!?
Friedrich Leisch