replace delay in seconds with date time