Update time.erl

Changed from static declaration to record extraction, for a less brittle time record effect.