as.POSIXctUTC: as POSIXctUTC

Description Usage Arguments Author(s) Examples

View source: R/timeUTC.R

Description

construct a time in timezone UTC and set tzone attribute to UTC for correct printing

Usage

1

Arguments

x

An object to be converted.

Author(s)

Thomas Wutzler, Oscar Perez Priego

Examples

1
2
3
4
5
#tmp1 <- as.POSIXct(c("2014-06-23 00:00:01","2014-06-23 05:00:01"))
#plot(tmp1)    
tmp <- as.POSIXctUTC(c("2014-06-23 00:00:01","2014-06-23 05:00:01"))
print(tmp)
plot(tmp)    # note that it is not converted to local time e.g. CET, but ggplot respects timezone attribute

RespChamberProc documentation built on May 2, 2019, 5:53 p.m.