Add Asn_time.date_to_posix_time function.

Copyrights waived the project's license. And remember, never roll
in your own calendar calculation functions.