Convert to date and time without time zone?
1 answer
You can use as.POSIXct
to create a date / time object. It looks like Calgary, Alberta is UTC-07: 00 as the time zones are coming, so you can do
strptime("1/1/2010 10:00", format="%m/%d/%Y %H:%M", tz="Etc/GMT-7")
(assuming month / day / year format - see ?strptime
for other format options). Instead of specifying the real time zone, you can always use "GMT".
0
source to share