basic time setting functionality