Core Help Root: Objects: World Time


$world_time contains methods relating to time-handling on a world wide basis. Parts of it need upgrading for a more complex world, like current_season to handle having a north and south hemisphere with opposite seasons.

Methods

.from_english(string, [units])
Given an english description of a length of time as a string, it returns the number of seconds that time represents.
.local_time()
Returns the number of 'world seconds' since the world-time started.
.daytime(zone, dayscale)
Returns a list of three elements. First is the number of hours into the day. Second is a symbol for the part of day it is, 'night, 'predawn, 'dawn, etc. Third is either 'day or 'night depending on the time of day.
.current_season()
Returns a string for the current season.
.from_unit_list(time, ulist)
Given a number of seconds, time, and a list of indexes into the time_units, ulist, return an english string representing the time.
.parse_unit(unit, [units])
Returns the entry in time_units for the unit given by unit.
.time_units()
Returns the current units of time being used.


Colors | Trie | List Library | has_text | mutex | Heap | Weather System | Math Library | Integer | Data Lib | Object Lib | Help Node | Code Lib | Generic Map | Scrabble | World Time | Time | Robot | Native Function Reference | Complex Number Library | Bytecode Docs | motd | Mail List | Float | Collective | libraries | social_ui


the Cold Dark