PHP TIME converting? -


i have in database shows time when users signed on recorded .. when person makes user saves script (time ();) in database under variable name "regtim".

if use echo print out, example:

     1375202508

how can make date if possible? or example mentioned below.

for example: 08/06/2013 2:11

you can use date() function timestamp mention in second argument,

date ( string $format [, int $timestamp = time() ] ) 

or in case:

date('m/d/y h:m', 1375202508); 

you can read more on http://php.net/manual/en/function.date.php


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -