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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -