Thanks for beating me to that, Gabor.  The %OS format spec isn't in the 
strptime() docs.  How else might we have found this for ourselves?

cur

r-help-boun...@r-project.org wrote on 05/26/2009 02:59:20 PM:
> > as.POSIXct(c("06:00:00.100","06:00:01.231"), format = "%H:%M:%S%OS")
> [1] "2009-05-26 06:00:00.100 EDT" "2009-05-26 06:00:00.231 EDT"
> 
> 
> On Tue, May 26, 2009 at 5:52 PM, Tim Clark <mudiver1...@yahoo.com> 
wrote:
> > ...
> > options(digits.secs=3)
> > t<-c("06:00:00.100","06:00:01.231")
> > myt<-as.POSIXct(t,format="%H:%M:%S")
> > myt
> >
> > [1] "2009-05-26 06:00:00 HST" "2009-05-26 06:00:01 HST"
> >
> > I would like the output to be just time with fractional seconds. I.e.
> >
> > 06:00:00.100,06:00:01.231


-- 
Curt Seeliger, Data Ranger
Raytheon Information Services - Contractor to ORD
seeliger.c...@epa.gov
541/754-4638

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to