The problem is choosing the right time zone. On my system, the tz
"SAST" specification is not valid, but maybe at your level would be:
x[ index(x) < as.POSIXct( "2011-10-12 16:44:00", tz= SAST") ]
(UTC +2 appears.) And I return what I said that my system does not recognize it.
as.POSIXct( "2011-10-12 16:44:00", tz= "Africa/Johannesburg")
Therefore use:
x[ index(x) <= as.POSIXct( "2011-10-12 16:44:00", tz= "Africa/Johannesburg")]
source share