erlang implementation of quartz