I am trying to construct a time variable x hours before or after a specific date
Even though I constructed the time variable in tc format I am having leap second adjustment
What I am trying to do is to have eventtime_1hour seconds part to be exactly 00..What I got is the following:
lets assume x is 1 hour
gen a=60*60000 (1 hour in miliseconds)
. gen eventtime_1hour= eventtime- a
. format %tc eventtime_1hour
is there anyway to have eventtime_1hour to be 26mar1989 02:00:00; 24sep1989 03:00:00 etc....
a eventtime_1hour eventtime
3600000 26mar1989 02:00:05 26mar1989 03:00:00
3600000 24sep1989 02:59:43 24sep1989 04:00:00
3600000 31dec1989 22:59:53 01jan1990 00:00:00
3600000 31dec1989 23:00:59 01jan1990 00:01:00
3600000 31dec1989 23:02:04 01jan1990 00:02:00
3600000 31dec1989 23:03:10 01jan1990 00:03:00
3600000 31dec1989 23:04:15 01jan1990 00:04:00
Even though I constructed the time variable in tc format I am having leap second adjustment
What I am trying to do is to have eventtime_1hour seconds part to be exactly 00..What I got is the following:
lets assume x is 1 hour
gen a=60*60000 (1 hour in miliseconds)
. gen eventtime_1hour= eventtime- a
. format %tc eventtime_1hour
is there anyway to have eventtime_1hour to be 26mar1989 02:00:00; 24sep1989 03:00:00 etc....
a eventtime_1hour eventtime
3600000 26mar1989 02:00:05 26mar1989 03:00:00
3600000 24sep1989 02:59:43 24sep1989 04:00:00
3600000 31dec1989 22:59:53 01jan1990 00:00:00
3600000 31dec1989 23:00:59 01jan1990 00:01:00
3600000 31dec1989 23:02:04 01jan1990 00:02:00
3600000 31dec1989 23:03:10 01jan1990 00:03:00
3600000 31dec1989 23:04:15 01jan1990 00:04:00
Comment