Temporal Dark Solitons in Nonuniform Bose-Einstein Condensates