function eqtime = clustime(some_cat)
    % These routine calculates the time in days of the eqs. in ZG.newcat relative
    % to the year 1902
    % A.Allmann
    % used to modify / use newcat.
  
    %rewritten by Celso Reyes 2017
    
    eqtime = days(some_cat.Date - datetime(1902,01,01));
end

CelsoReyes
github-repos/MATLAB/CelsoReyes-zmap7/zmap7-3895fcb3ca3073608abe22ca71960eb082fd0d9a/src/declus/clustime.m
zmap7
github-repos/MATLAB/CelsoReyes-zmap7
3895fcb3ca3073608abe22ca71960eb082fd0d9a