if by 1g acceleration you mean 9.8m/s² then I calculate it will take 8 years. But I also calculate it will by then have reached a speed of 2.7 billion metres per second, which is well in excess of the speed of light, and I'm not sure this can ever be possible.
The maths was done in my head so could be out but I'm sure someone on here can calculate it



