1396003662 -> "2014-03-28 12:47:42+02" time zone +2 hours
Solving:
SELECT
1396003662 AS unixtime_with_timezone
, to_timestamp( 1396003662 ) AS timestamp
, extract ( epoch from ( to_timestamp ( 1396003662 ) - (SELECT age(now() at time zone 'UTC', now())) ) ) AS unixtimestamp_without_timezone
No comments:
Post a Comment