Displaying 5 results from an estimated 5 matches for "with_tz".
2012 Mar 30
1
lubridate:ymd_hm and coercion of class POSIXct. Smooth way to restore the date format.
...it to class POSIXct:
x$datetime3 <- NA
class(x$datetime3) <- "POSIXct"
x
x$datetime3[!is.na(x$time)] <- ymd_hm(x$datetime[!is.na(x$time)])
x
# something happened with the time (15:00 vs 17:00). A time zone issue?
tz(x$datetime3[!is.na(x$time)])
Sys.timezone()
x$datetime3 <- with_tz(x$datetime3, "CEST")
x
# warnings, but correct time
# another 'random' try
x$datetime3 <- NA
x
class(x$datetime3) <- "POSIXct"
x$datetime3[!is.na(x$time)] <- ymd_hm(x$datetime[!is.na(x$time)])
x
tz(x$datetime3)
x$datetime3 <- with_tz(x$datetime3, "UTC&...
2010 Aug 31
0
New package: lubridate 0.1
...is,?timeSeries,?fts, and?tseries)
* quick and easy parsing of date-times:?ymd(),?dmy(),?mdy(), ...
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds:?year(),
month(),?day(), ...
* helper functions for handling time zones:?with_tz(),?force_tz()
Lubridate also expands the type of mathematical operations that can be
performed with date-time objects. It introduces three new time span
classes borrowed from http://joda.org.
* durations, which measure the exact amount of time between two points
* periods, which accurately track...
2010 Nov 17
0
lubridate v2.2 available on cran
...For example, it provides:
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds: year(),
month(), day(), ...
* quick and easy functions to parse date-times: ymd(), dmy(), mdy(), ...
* helper functions for handling time zones: with_tz(), force_tz()
* three new time span objects -- durations, periods, and intervals -- based
on the time span classes of http://joda.org and the boost C++ library.
The new version includes:
* division, modulo, and integer methods for time spans.
* cleaner display formats for time span objects
* a...
2010 Aug 31
0
New package: lubridate 0.1
...is,?timeSeries,?fts, and?tseries)
* quick and easy parsing of date-times:?ymd(),?dmy(),?mdy(), ...
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds:?year(),
month(),?day(), ...
* helper functions for handling time zones:?with_tz(),?force_tz()
Lubridate also expands the type of mathematical operations that can be
performed with date-time objects. It introduces three new time span
classes borrowed from http://joda.org.
* durations, which measure the exact amount of time between two points
* periods, which accurately track...
2010 Nov 17
0
lubridate v2.2 available on cran
...For example, it provides:
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds: year(),
month(), day(), ...
* quick and easy functions to parse date-times: ymd(), dmy(), mdy(), ...
* helper functions for handling time zones: with_tz(), force_tz()
* three new time span objects -- durations, periods, and intervals -- based
on the time span classes of http://joda.org and the boost C++ library.
The new version includes:
* division, modulo, and integer methods for time spans.
* cleaner display formats for time span objects
* a...