Added secondstime function

Added missing secondstime function