Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Array for comment timestamps

$
0
0

Hey guys,

 

I was just wondering if anyone on here has some guidance for someone trying to build a comment time stamp (30 seconds ago, 1 minute ago, 1 month ago, 1 year ago, etc.) that takes the different day count of every month + leap year into consideration. I'm not asking for you guys to give me straight code or anything. I just need some guidance on finding the proper/best method of going about this. 

 

I'm guessing placing everything in arrays is a must?

 

 

Thanks!


Viewing all articles
Browse latest Browse all 13200

Trending Articles