a timesection class lib implemented with PHP for klose project