Re: [R] Conversion of String to Datetime: How to Keep Timezone Offset when Printing?

2021-06-06 Thread Thomas Bulka
Am Sa., 5. Juni 2021 um 11:47 Uhr schrieb Micha Silver : > It's not clear what you're asking. The time strings already have the > timezone offset specified. If you get rid of the "T" character in the > strings, then you can use regular datetime formatting specifiers to > convert to R datetime objec

Re: [R] Conversion of String to Datetime: How to Keep Timezone Offset when Printing?

2021-06-05 Thread Micha Silver
On 6/4/21 9:20 PM, Thomas Bulka wrote: Hello list, I do have a hard time handling date and time data with different timezone offsets. Say, I have two strings which represent different dates/times, like so: DT1 <- "2021-06-19T13:45:00-03:00" DT2 <- "2020-07-20T11:39:12+02:00" my_dates <- c(DT1

Re: [R] Conversion of String to Datetime: How to Keep Timezone Offset when Printing?

2021-06-05 Thread Jeff Newmiller
No. Sorry. A POSIXct vector can have only one timezone. Kind of goes along with the whole vectorization thing. You could fake it with lists, but they are dramatically less convenient. I suppose you could also fake it by developing your own variation on the POSIXct class... but that would be rat

Re: [R] conversion of string

2012-01-23 Thread Jim Lemon
On 01/23/2012 07:35 PM, uday wrote: I new in R programming language. I have some time data time [1] "2005-01-03 05:11:39 UTC" "2005-01-03 06:36:02 UTC" "2005-01-03 06:36:55 UTC" [4] "2005-01-03 06:37:00 UTC" "2005-01-03 06:38:04 UTC" "2005-01-03 06:38:04 UTC" [7] "2005-01-03 06:38:04 UTC"

Re: [R] conversion of string

2012-01-23 Thread Petr PIKAL
Hi > > I new in R programming language. > > I have some time data > > time > [1] "2005-01-03 05:11:39 UTC" "2005-01-03 06:36:02 UTC" "2005-01-03 > 06:36:55 UTC" > [4] "2005-01-03 06:37:00 UTC" "2005-01-03 06:38:04 UTC" "2005-01-03 > 06:38:04 UTC" > [7] "2005-01-03 06:38:04 UTC" "2005-01-03

Re: [R] conversion of string

2012-01-23 Thread Milan Bouchet-Valat
Le lundi 23 janvier 2012 à 00:35 -0800, uday a écrit : > I new in R programming language. > > I have some time data > > time > [1] "2005-01-03 05:11:39 UTC" "2005-01-03 06:36:02 UTC" "2005-01-03 > 06:36:55 UTC" > [4] "2005-01-03 06:37:00 UTC" "2005-01-03 06:38:04 UTC" "2005-01-03 > 06:38:04