Generally... Indoor: Use a tripod- set the camera on manual settings if possible- and experiment until you get a satisfactory result. Usually one half to one second will give a good result- vary the shutter f stop until you're satisfied.
Outdoor: probably use a time of 2 to 8 seconds. A lot depends on how powerful a light you're shooting- and the distance. Shots into trees soak up a lot of light. A shot into a white barn gives a good reflection.
Digitals are great...shoot a ton of shots until it works!
Good luck.