Implementation
PHP

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
Timestamp = {Seconds div 1000000, Seconds rem 1000000, 0},
calendar:now_to_universal_time(Timestamp).
import std.datetime, std.stdio;
auto d = SysTime(unixTimeToStdTime(ts), UTC());
var d = new DateTime.fromMillisecondsSinceEpoch(ts, isUtc: true);
import "time"
d := time.Unix(ts, 0)
require 'date'
d = DateTime.strptime(ts, '%s')
import java.util.Date;
Date date = new Date(numberOfSecondsSinceEpoch  * 1000);
SysUtils
var
  D: TDateTime;
  TS: TTimeStamp;
begin
  D := TimeStampToDateTime(TS);
end.
import datetime
d = datetime.date.fromtimestamp(ts)
extern crate chrono;
use chrono::prelude::*:
let d = NaiveDateTime::from_timestamp(ts, 0);
new Date (ts * 1000)