<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def epoch(ctx, datetime):
 """ Converts the given date to the number of seconds since January 1st, 1970 UTC """

    return conversions.to_decimal(str(conversions.to_datetime(datetime, ctx).timestamp()), ctx)