[R] POSIXct extract time

Henrique Dallazuanna wwwhsd at gmail.com
Tue Jul 15 21:57:03 CEST 2008


Try this:

format(down.215$time, "%H:%M:%S")

On Tue, Jul 15, 2008 at 4:50 PM, stephen sefick <ssefick at gmail.com> wrote:
> RM215.sp <- SpatialPoints(RM215, proj4string=CRS("+proj=longlat
> +datum=WGS84"))
> d060101 <- as.POSIXct("2006-01-01", tz="EST")
> study_seq <- seq(from=d060101, length.out=761, by="days")
> up.215 <- sunriset(RM215.sp, study_seq, direction="sunrise",
> POSIXct.out=TRUE)
> down.215 <- sunriset(RM215.sp, study_seq, direction="sunset",
> POSIXct.out=TRUE)
>
> #I would like to extract just the time part of the output is there any way
> to do this?
>
> --
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make us
> feel like gods. We are mammals, and have not exhausted the annoying little
> problems of being mammals.
>
> -K. Mullis
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list