Dear all
I have a %tc timestamp GMT variable in Stata that I would like to convert into EST.
My timestamps look like : 9oct2015 12:00:00 and I dont care about leap seconds.
To do that, I basically have to substract 4 hours (sometimes 5).
Problem: I dont know how to do that.
Indeed, things seem to be more complicated than when one deals with daily %td dates (so that date+1=the next day).
I tried something like
but this fails around midnight when its already tomorrow in europe ;-)
Any ideas? Many thanks!!
I have a %tc timestamp GMT variable in Stata that I would like to convert into EST.
My timestamps look like : 9oct2015 12:00:00 and I dont care about leap seconds.
To do that, I basically have to substract 4 hours (sometimes 5).
Problem: I dont know how to do that.
Indeed, things seem to be more complicated than when one deals with daily %td dates (so that date+1=the next day).
I tried something like
Code:
gen double est_timestamp=dhms(dofc(timestamp)),hh(date)-4,(mm(date)),ss(date))
Any ideas? Many thanks!!
Comment