[R] Strage result with an append/strptime combination

Ptit_Bleu ptit_bleu at yahoo.fr
Wed Aug 29 15:39:24 CEST 2007


In french, I wouls say "Chapeau bas". In english, no idea. So I just say
Thanks again.
Ptit Bleu (reading "chron reference manual" :-).



Try


fmt <- function(x) with(month.day.year(x),
	sprintf("%02d/%02d/%02d %02d:%02d:%02d", month, day, year,
		hours(x), minutes(x), seconds(x)))
fmt(x)


On 8/29/07, Ptit_Bleu <ptit_bleu at yahoo.fr> wrote:
>
> Thanks Gabor !
>
> It works.
> Just one more thing : is there a possibility to remove "(" and ")" before
> I
> copy the data to a MySQL database.
>
> Again thank you for the tip.
> Ptit Bleu.
-- 
View this message in context: http://www.nabble.com/Strange-result-with-an-append-strptime-combination-tf4347401.html#a12387275
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list