SQL Server does not offer a bit(32)
data type (such as Postgres). I need to convert a string
into a bit(32)
and then into bigint
and later on into a timestamp
.
I can give an example:
I have to convert this string "x5c081ca4" into a bit(32) value: "01011100000010000001110010100100", then to bigint: 1544035492 and then to timestamp: "2018-12-05 19:44:52+01"
In Postgres these would be the functions: TO_TIMESTAMP(timeconv::bit(32)::BIGINT)
Any ideas how I can solve the problem?