For other animals, chromosomes are irrelevant to sex. Instead, sex is determined by the environment. This happens in some crabs, where males are hatched earlier in the mating season than females; or crocodiles, where temperature of the egg during incubation determines sex.