Jump to content

timestamp query


nichanson

Recommended Posts

After meny hours trying to understand this unix time system, I wrote this code to post my database timestamp (I'm still a beginner):

 

  
  $time_st = date("h, m, s, d, m, y",$row['date']);
  $time_fn = mktime($time_st);
  $time2 = date("d M Y",$time_fn);

 

Is this a valid way to do it as all the other tutorials make it sound so difficult or is there an easier way to do it?

Nick

Link to comment
https://forums.phpfreaks.com/topic/116949-timestamp-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.