add DocBlock and a test for datetime_to()