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 1704 posted 15 years ago by GeorgeL
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0 2096 posted 15 years ago by koko
Construct DateTime object with unix timestamp
0 1577 posted 17 years ago by iloveitaly
Doesn't work on Windows, obviously
1 1820 posted 17 years ago by tclancy
0 1801 posted 17 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 2469 posted 18 years ago by FrankBr
« Prev 1 Next »