Date and time related processing for yii framework