Not only is this simpler, it avoids the problem of duplicate times around a DST switch.
In reply to Re^2: Date to Epoch by ikegami in thread Date to Epoch by Anonymous Monk