a timesection class lib implemented with PHP