Method code for $world_time.current_season()

[Turn off line numbering]
  1: var t;
  2: 
  3: // This is not very flexible, but works well enough. Note that southern
  4: // hemisphere needs another object, with opposite seasons.
  5: return ["spring", "summer", "fall", "winter"][.local_time() / 2592000 % 4 + 1];

// Created 19-Nov-1996 as a part of ColdCore, see: @help Credit

Tlon