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 875 posted 14 years ago by GeorgeL
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0 1123 posted 14 years ago by koko
Construct DateTime object with unix timestamp
0 857 posted 15 years ago by iloveitaly
Doesn't work on Windows, obviously
1 900 posted 16 years ago by tclancy
0 996 posted 16 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 1261 posted 17 years ago by FrankBr
« Prev 1 Next »