[R] why is as.date function not working for me? (dd/mm/yyyy h:mm)

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu Feb 6 23:24:10 CET 2014

You must deal with identifying the time zone. I have found that setting TZ environment variable appropriately for the data before converting character values to POSIXct gives me the best results. This is actually easier for standard-time-only data than for data with daylight savings time transitions. For example I use


for year-round Standard time in California.

The chron library offers an alternative approach that intentionally ignores time zones, but I have not found it so useful for my purposes as POSIXct.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On February 6, 2014 1:30:22 PM PST, jcrosbie <james at crosb.ie> wrote:
>This function returns date/times without timezone
>strptime(dates,format="%d/%m/%Y %H:%M")
>View this message in context:
>Sent from the R help mailing list archive at Nabble.com.
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list