Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged unix



« Prev 1 Next »
Use by sending a unix timestamp to countTime(timestamp). It will return something like 40 seconds , 2 weeks, 1 hour. Then just format to your needs like we do in our app: Someone was here 10 minutes ago.
0 609 posted 13 years ago by GeorgeL
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0 793 posted 13 years ago by koko
Construct DateTime object with unix timestamp
0 527 posted 14 years ago by iloveitaly
Doesn't work on Windows, obviously
1 606 posted 15 years ago by tclancy
0 639 posted 15 years ago by stavelin
A simple but usefull smarty plugin to convert a unix timestamp to any date format. Usage: {$var|convertunix:"d-m-Y"}
2 882 posted 16 years ago by FrankBr
« Prev 1 Next »