Earlier it was shown that the entropy of an ideal gas, contained in a box and moving in a gravitational field, develops an area dependence when it approaches the horizon of a static, spherically symmetric spacetime. Here we extend the above result in two directions; viz., to (a) the stationary axisymmteric spacetimes and (b) time dependent cosmological spacetimes evolving asymptotically to the de Sitter or the Schwarzschild de Sitter spacetimes. While our calculations are exact for the stationary axisymmetric spacetimes, for the cosmological case we present an analytical expression of the entropy when the spacetime is close to the de Sitter or the Schwarzschild de Sitter spacetime. Unlike the static spacetimes, there is no hypersurface orthogonal timelike Killing vector field in these cases. Nevertheless, the results hold and the entropy develops an area dependence in the appropriate limit.necessarily Killing horizons, the observers who do not cross them would still associate entropy densities (1/4) with the relevant areas.Given that the black holes have thermodynamic properties, it is natural to ask whether such notions could be associated with cosmological or Hubble horizons as well. Among them, perhaps the most interesting one is that of the de Sitter space, which has a Killing horizon. The de Sitter horizon could also be associated with thermodynamic properties such as the entropy and temperature, qualitatively similar to that of the black hole [28][29][30][31][32]. For cosmological spacetimes other than the de Sitter, the Hubble horizon, r(t) = H −1 (t) (where t is the comoving time, r(t) is the proper radius and H(t) is the Hubble rate) is not a Killing horizon. For a spatially flat cosmology, the Hubble horizon also coincides with the apparent horizon, where the expansion corresponding to one of the two principle null congruences vanishes while the other being positive. The notion of apparent horizon is dependent upon the spacetime foliation. Attempts to build thermodynamics by associating entropy and temperature with such horizons can be seen in, e.g. [33][34][35] and in references therein. However, we note that unlike the Killing horizons, the Hubble or apparent horizon is not a null surface in general [36] as the normal to such surfaces, ∇ a (r(t)H(t)), is not in general a null vector.In the usual statistical mechanics of normal matter, the entropy depends upon the volume of the system, instead of its area. Thus, the horizons are indeed some special objects -qualitatively or quantitatively, as far as the thermodynamic properties are concerned. It was shown in [37,38] that in order for the entropy-area relation to hold, the density of states near the horizon must have an exponential 'pile up' behaviour and any effective theory describing a quantum field near the horizon must be non-local, over the Planck length scale near the horizon. In [39], the dynamics of a box containing an ideal gas moving in a static and spherically symmetric black hole spacetime was considered and the area dependence of the entro...