function [elapsed_sec] = datenum2elapsed_sec( time )

elapsed_sec = (time - time(1)).*86400;