yii: created and updated, who and when

by prettyscripts on 2010-09-02 15:31:02 • 5 comments »

phpyii

most data have created_date, created_by, updated_date and updated_by columns to audit records. in yii, these columns can be automatically updated via these 2 behaviors:CTimestampBehavior - a standard zii behavior that is distributed with yiiBlameab… more »

Tags: behavior, created, extension, modified, timestamp, updated, yii

unix time to human readable format

by prettyscripts on 2008-07-18 10:58:05 • Leave a comment »

miscunix

some log files such as squid log uses uses unix time as timestamp, which looks like some random number generated number. you can use this online conversion tool. to run from unix command line, to convert to human readable format, eg in yyyy-mm-dd hh:… more »

Tags: timestamp, unix