Display unix time in local time with php

Submitted by Fekete Zoltán on

$unix_timestamp = 1616076808; // just an example valid unix time

setlocale(LC_TIME, 'hu_HU'); // use your locale instead of mine

echo strftime('%Y-%m-%d, %A, %H:%M', $unix_timestamp);

 

 

Tags