Directly on the ground, not long, rot and termites will get to them. Up on something like cinder blocks, years.
Directly on the ground is a variable, some guys can get two years, others...shoot around here they won't last one year on the ground, they turn to mush.