New implementation

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