adding Time functions