I have a spreadsheet full of data with dates that look like this:
Mon Jul 16 15:20:22 +0000 2012
Is there a way to convert these to R dates (preferably PST) without using regular expression or is there no other way? I’d appreciate ideas on doing this conversion efficiently.
Sure, just use
strptime()to parse time from strings:which uses my local timezone (CDT). If yours is Pacific, you can set it explicitly as in
which looks right with a 7 hour delta to UTC.