Many programming languages already have functions to handle converting date/time to a unix timestamp. For example:
http://www.php.net/manual/en/function.mktime.php
takes date/time assuming the local timezone and returns a unix timestamp that could be used with sched_api.
-- W