Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged unix
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
870
posted 14 years ago by GeorgeL
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0
1117
posted 14 years ago by koko
A simple but usefull smarty plugin to convert a unix timestamp to any date format.
Usage: {$var|convertunix:"d-m-Y"}
2
1253
posted 17 years ago by FrankBr
« Prev 1 Next »